Pass inst in keyboard_hook setup for dinput, (SetWindowsHookExW will fail without it.) This fixes bug #1122 (i think.) regards, Jens Hoffmann (hoffmajs@gmx.de)
Index: dlls/dinput/dinput_main.c =================================================================== RCS file: /home/wine/wine/dlls/dinput/dinput_main.c,v retrieving revision 1.29 diff -u -3 -p -r1.29 dinput_main.c --- dlls/dinput/dinput_main.c 4 Nov 2002 23:53:45 -0000 1.29 +++ dlls/dinput/dinput_main.c 23 Nov 2002 02:39:09 -0000 @@ -55,7 +55,7 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWO switch(reason) { case DLL_PROCESS_ATTACH: - keyboard_hook = SetWindowsHookExW( WH_KEYBOARD_LL, KeyboardCallback, 0, 0 ); + keyboard_hook = SetWindowsHookExW( WH_KEYBOARD_LL, KeyboardCallback, inst, 0 ); break; case DLL_PROCESS_DETACH: UnhookWindowsHookEx(keyboard_hook);