Skip to content
Snippets Groups Projects
Commit 6d5eee08 authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard
Browse files

dinput: Clear static variables after releasing hooks.

parent 82569d9d
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment