summaryrefslogtreecommitdiff
path: root/protocols/Twitter/theme.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-07 15:23:57 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-07 15:23:57 +0000
commit6475b110c06ebd29fda4e4d8104e9cb121c99eeb (patch)
tree75bd1886cdd0278c205eacb78e89e28ddceb5987 /protocols/Twitter/theme.cpp
parent094861f16a9627c04dc445294345af0bd5c59e6f (diff)
various 64-bit compilation issues
git-svn-id: http://svn.miranda-ng.org/main/trunk@356 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Twitter/theme.cpp')
-rw-r--r--protocols/Twitter/theme.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/protocols/Twitter/theme.cpp b/protocols/Twitter/theme.cpp
index 1da3724bb2..5afb3b7e36 100644
--- a/protocols/Twitter/theme.cpp
+++ b/protocols/Twitter/theme.cpp
@@ -116,7 +116,7 @@ static TwitterProto * GetInstanceByHContact(HANDLE hContact)
}
template<int (__cdecl TwitterProto::*Fcn)(WPARAM,LPARAM)>
-int GlobalService(WPARAM wParam,LPARAM lParam)
+INT_PTR GlobalService(WPARAM wParam,LPARAM lParam)
{
TwitterProto *proto = GetInstanceByHContact(reinterpret_cast<HANDLE>(wParam));
return proto ? (proto->*Fcn)(wParam,lParam) : 0;
@@ -142,10 +142,8 @@ void InitContactMenus()
mi.icolibItem = GetIconHandle("reply");
mi.pszName = LPGEN("Reply...");
mi.pszService = "Twitter/ReplyToTweet";
- g_hMenuEvts[1] = CreateServiceFunction(mi.pszService,
- GlobalService<&TwitterProto::ReplyToTweet>);
- g_hMenuItems[0] = reinterpret_cast<HANDLE>(
- CallService(MS_CLIST_ADDCONTACTMENUITEM,0,(LPARAM)&mi) );
+ g_hMenuEvts[1] = CreateServiceFunction(mi.pszService, GlobalService<&TwitterProto::ReplyToTweet>);
+ g_hMenuItems[0] = reinterpret_cast<HANDLE>(CallService(MS_CLIST_ADDCONTACTMENUITEM,0,(LPARAM)&mi) );
mi.position=-2000006000;
mi.icolibItem = GetIconHandle("homepage");