mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
dinput: Wait for the internal thread with a timeout.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52263 Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
575e632d08
commit
7e5eeecdfb
1 changed files with 2 additions and 1 deletions
|
@ -1379,7 +1379,8 @@ static void dinput_thread_start(void)
|
|||
static void dinput_thread_stop(void)
|
||||
{
|
||||
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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue