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

This commit is contained in:
The Dax 2014-04-11 14:18:27 -04:00
parent b262794a35
commit b82e85f9fc
2 changed files with 2 additions and 2 deletions

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;
}

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: