joy.cpl: Correct joystick testing thread behavior.
diff --git a/dlls/joy.cpl/main.c b/dlls/joy.cpl/main.c index eb8f982..e9b3a72 100644 --- a/dlls/joy.cpl/main.c +++ b/dlls/joy.cpl/main.c
@@ -424,9 +424,11 @@ } 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; }