From f6233a8261525da7c1a7ee52afd46d1980275a40 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Mon, 9 Sep 2013 13:44:34 +0000 Subject: hook fix git-svn-id: http://svn.miranda-ng.org/main/trunk@6031 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/StatusPlugins/AdvancedAutoAway/advancedautoaway.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/StatusPlugins/AdvancedAutoAway') diff --git a/plugins/StatusPlugins/AdvancedAutoAway/advancedautoaway.cpp b/plugins/StatusPlugins/AdvancedAutoAway/advancedautoaway.cpp index a6de74e205..e3fd4580bb 100644 --- a/plugins/StatusPlugins/AdvancedAutoAway/advancedautoaway.cpp +++ b/plugins/StatusPlugins/AdvancedAutoAway/advancedautoaway.cpp @@ -424,9 +424,9 @@ static int HookWindowsHooks(int hookMiranda, int hookAll) if (hookAll) { MyGetLastInputInfo=NULL; if ( monitorKeyboard && hKeyBoardHook == NULL ) - hKeyBoardHook = SetWindowsHookEx(WH_KEYBOARD,KeyBoardHookFunction,hInst,0); + hKeyBoardHook = SetWindowsHookEx(WH_KEYBOARD, KeyBoardHookFunction, 0, GetCurrentThreadId()); if ( monitorMouse && hMouseHook == NULL ) - hMouseHook = SetWindowsHookEx(WH_MOUSE,MouseHookFunction,hInst,0); + hMouseHook = SetWindowsHookEx(WH_MOUSE, MouseHookFunction, 0, GetCurrentThreadId()); } return 0; -- cgit v1.2.3