Windows: Stop input poll before emu shutdown.

Otherwise, we could crash in the input thread during host deletion.
This commit is contained in:
Unknown W. Brackets committed 2017-12-03 19:22:01 -08:00
1 parent 4e6c083807
commit f607f41440
1 file changed
+1 -1
+1 -1
View File
@@ -859,8 +859,8 @@ namespace MainWindow
break;
case WM_CLOSE:
EmuThread_Stop();
InputDevice::StopPolling();
EmuThread_Stop();
WindowsRawInput::Shutdown();
return DefWindowProc(hWnd,message,wParam,lParam);