mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Windows: Fix shutdown order (stop the main thread before the window gets destroyed)
This commit is contained in:
1 parent
e48a1599d4
commit
a8985d8dda
2 files changed
+3
-3
No files matched your search
@@ -968,6 +968,7 @@ namespace MainWindow
|
||||
break;
|
||||
|
||||
case WM_CLOSE:
|
||||
MainThread_Stop();
|
||||
InputDevice::StopPolling();
|
||||
WindowsRawInput::Shutdown();
|
||||
return DefWindowProc(hWnd,message,wParam,lParam);
|
||||
@@ -976,8 +977,9 @@ namespace MainWindow
|
||||
KillTimer(hWnd, TIMER_CURSORUPDATE);
|
||||
KillTimer(hWnd, TIMER_CURSORMOVEUPDATE);
|
||||
KillTimer(hWnd, TIMER_WHEELRELEASE);
|
||||
// Main window is gone, this tells the message loop to exit.
|
||||
PostQuitMessage(0);
|
||||
break;
|
||||
return 0;
|
||||
|
||||
case WM_USER + 1:
|
||||
NotifyDebuggerMapLoaded();
|
||||
|
||||
Reference in new issue
Block a user