Pass correct instance in keyboard_hook setup.
This commit is contained in:
parent
3f17416ad2
commit
97bd11de89
|
@ -55,7 +55,7 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserv)
|
||||||
switch(reason)
|
switch(reason)
|
||||||
{
|
{
|
||||||
case DLL_PROCESS_ATTACH:
|
case DLL_PROCESS_ATTACH:
|
||||||
keyboard_hook = SetWindowsHookExW( WH_KEYBOARD_LL, KeyboardCallback, 0, 0 );
|
keyboard_hook = SetWindowsHookExW( WH_KEYBOARD_LL, KeyboardCallback, inst, 0 );
|
||||||
break;
|
break;
|
||||||
case DLL_PROCESS_DETACH:
|
case DLL_PROCESS_DETACH:
|
||||||
UnhookWindowsHookEx(keyboard_hook);
|
UnhookWindowsHookEx(keyboard_hook);
|
||||||
|
|
Loading…
Reference in New Issue