From 20d1480ed78c9395749d5b4e198d8687f95220e6 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Tue, 31 Mar 2009 05:32:30 +0000 Subject: x64 port git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@450 4f64403b-2f21-0410-a795-97e2b3489a10 --- meta2/menu.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'meta2/menu.cpp') diff --git a/meta2/menu.cpp b/meta2/menu.cpp index 8b68ca9..d1cface 100644 --- a/meta2/menu.cpp +++ b/meta2/menu.cpp @@ -67,7 +67,7 @@ INT_PTR ContactMenuDefault(WPARAM wParam, LPARAM lParam) { } // show contact's context menu -DWORD CALLBACK sttMenuFunc( LPVOID param ) +VOID CALLBACK sttMenuFunc( ULONG_PTR param ) { HMENU hMenu; TPMPARAMS tpmp = {0}; @@ -83,16 +83,13 @@ DWORD CALLBACK sttMenuFunc( LPVOID param ) CallService(MS_CLIST_MENUPROCESSCOMMAND, MAKEWPARAM(LOWORD(menuRet), MPCF_CONTACTMENU), (LPARAM)hSub); DestroyMenu(hMenu); - - return 0; } INT_PTR Meta_ContactMenuFunc(WPARAM wParam, LPARAM lParam) { - char buff[1024]; HANDLE hMeta = (HANDLE)wParam; - int contact_num = (int)lParam; + unsigned contact_num = (unsigned)lParam; if(metaMap.exists(hMeta) && contact_num >= 0 && contact_num < metaMap[hMeta].size()) { - QueueUserAPC((PAPCFUNC)sttMenuFunc, metaMainThread, (ULONG)metaMap[hMeta][contact_num].handle()); + QueueUserAPC(sttMenuFunc, metaMainThread, (ULONG_PTR)metaMap[hMeta][contact_num].handle()); } return 0; -- cgit v1.2.3