From 6e60adbf5b4d2f02475e231553149c2f9cc97acf Mon Sep 17 00:00:00 2001 From: Lucas Zawacki Date: Mon, 16 Jul 2012 14:05:39 -0300 Subject: [PATCH] joy.cpl: Correct joystick testing thread behavior. --- dlls/joy.cpl/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/joy.cpl/main.c b/dlls/joy.cpl/main.c index eb8f982683d..e9b3a720e43 100644 --- a/dlls/joy.cpl/main.c +++ b/dlls/joy.cpl/main.c @@ -424,9 +424,11 @@ static INT_PTR CALLBACK test_dlgproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM } break; - case PSN_RESET: + case PSN_RESET: /* intentional fall-through */ + case PSN_KILLACTIVE: /* Stop input thread */ data->stop = TRUE; + MsgWaitForMultipleObjects(1, &thread, FALSE, INFINITE, 0); CloseHandle(thread); break; } -- 2.11.4.GIT