Win32: Properly shutdown when using File->Exit, or when g_Config.bEscapeExitsEmulator is true.

This commit is contained in:
The Dax committed 2014-04-11 14:18:27 -04:00
1 parent b262794a35
commit b82e85f9fc
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -119,7 +119,7 @@ namespace WindowsRawInput {
}
if (g_Config.bEscapeExitsEmulator && raw->data.keyboard.VKey == VK_ESCAPE) {
DestroyWindow(MainWindow::GetHWND());
PostMessage(MainWindow::GetHWND(), WM_CLOSE, 0, 0);
return;
}
+1 -1
View File
@@ -1316,7 +1316,7 @@ namespace MainWindow
break;
case ID_FILE_EXIT:
DestroyWindow(hWnd);
PostMessage(hwndMain, WM_CLOSE, 0, 0);
break;
case ID_DEBUG_RUNONLOAD: