dinput: Clear static variables after releasing hooks.

This commit is contained in:
Vitaliy Margolen 2007-07-09 22:40:50 -06:00 committed by Alexandre Julliard
parent 82569d9d0a
commit 6d5eee0851

View file

@ -766,6 +766,7 @@ static LRESULT CALLBACK dinput_hook_WndProc(HWND hWnd, UINT message, WPARAM wPar
case WM_DESTROY:
if (kbd_hook) UnhookWindowsHookEx(kbd_hook);
if (mouse_hook) UnhookWindowsHookEx(mouse_hook);
kbd_hook = mouse_hook = NULL;
PostQuitMessage(0);
}
return DefWindowProcW(hWnd, message, wParam, lParam);