Re: joy.cpl: Correct joystick testing thread behavior
12 Jul
2012
12 Jul
'12
11 p.m.
Lucas Zawacki <lfzawacki(a)gmail.com> writes:
@@ -419,14 +421,19 @@ static INT_PTR CALLBACK test_dlgproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM SendDlgItemMessageW(hwnd, IDC_TESTSELECTCOMBO, CB_SETCURSEL, 0, 0); test_handle_joychange(hwnd, data);
- thread = CreateThread(NULL, 0, input_thread, (void*) data, 0, &tid); + ResumeThread(thread); } } break;
+ case PSN_KILLACTIVE: + SuspendThread(thread); + break;
You never want to use SuspendThread, it can't possibly work reliably. -- Alexandre Julliard julliard(a)winehq.org
4907
Age (days ago)
4907
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard