joy.cpl: Correct joystick testing thread behavior.
This commit is contained in:
parent
cbd83d0307
commit
6e60adbf5b
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue