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/KeyboardNotify/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/KeyboardNotify') diff --git a/plugins/KeyboardNotify/src/main.cpp b/plugins/KeyboardNotify/src/main.cpp index afe5bb1cca..b961c3b132 100644 --- a/plugins/KeyboardNotify/src/main.cpp +++ b/plugins/KeyboardNotify/src/main.cpp @@ -991,9 +991,9 @@ int HookWindowsHooks() case ACTIVE_WINDOWS: if (!MyGetLastInputInfo || bEmulateKeypresses) { if (hMouseHook == NULL) - hMouseHook = SetWindowsHookEx(WH_MOUSE, MouseHookFunction, hInst, 0); + hMouseHook = SetWindowsHookEx(WH_MOUSE, MouseHookFunction, 0, GetCurrentThreadId()); if (hKeyBoardHook == NULL) - hKeyBoardHook = SetWindowsHookEx(WH_KEYBOARD, KeyBoardHookFunction, hInst, 0); + hKeyBoardHook = SetWindowsHookEx(WH_KEYBOARD, KeyBoardHookFunction, 0, GetCurrentThreadId()); } break; case ACTIVE_MIRANDA: -- cgit v1.2.3