joy.cpl: Correct joystick testing thread behavior.

This commit is contained in:
Lucas Zawacki 2012-07-16 14:05:39 -03:00 committed by Alexandre Julliard
parent cbd83d0307
commit 6e60adbf5b
1 changed files with 3 additions and 1 deletions

View File

@ -424,9 +424,11 @@ static INT_PTR CALLBACK test_dlgproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM
} }
break; break;
case PSN_RESET: case PSN_RESET: /* intentional fall-through */
case PSN_KILLACTIVE:
/* Stop input thread */ /* Stop input thread */
data->stop = TRUE; data->stop = TRUE;
MsgWaitForMultipleObjects(1, &thread, FALSE, INFINITE, 0);
CloseHandle(thread); CloseHandle(thread);
break; break;
} }