Commit 7e5eeecd authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

dinput: Wait for the internal thread with a timeout.

parent 575e632d
...@@ -1379,7 +1379,8 @@ static void dinput_thread_start(void) ...@@ -1379,7 +1379,8 @@ static void dinput_thread_start(void)
static void dinput_thread_stop(void) static void dinput_thread_stop(void)
{ {
PostThreadMessageW( dinput_thread_id, WM_USER + 0x10, 0, 0 ); PostThreadMessageW( dinput_thread_id, WM_USER + 0x10, 0, 0 );
WaitForSingleObject( dinput_thread, INFINITE ); if (WaitForSingleObject( dinput_thread, 500 ) == WAIT_TIMEOUT)
WARN("Timeout while waiting for internal thread\n");
CloseHandle( dinput_thread ); CloseHandle( dinput_thread );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment