{Projct64] Put end emulation menu option in critical section

This commit is contained in:
zilmar 2016-04-02 21:34:28 +11:00
parent 5c84e78ee1
commit fe8b20e9d1
1 changed files with 6 additions and 3 deletions

View File

@ -179,9 +179,12 @@ bool CMainMenu::ProcessMessage(HWND hWnd, DWORD /*FromAccelerator*/, DWORD MenuI
g_BaseSystem->StartEmulation(true); g_BaseSystem->StartEmulation(true);
break; break;
case ID_FILE_ENDEMULATION: case ID_FILE_ENDEMULATION:
WriteTrace(TraceUserInterface, TraceDebug, "ID_FILE_ENDEMULATION"); {
CN64System::CloseSystem(); CGuard Guard(m_CS);
m_Gui->SaveWindowLoc(); WriteTrace(TraceUserInterface, TraceDebug, "ID_FILE_ENDEMULATION");
CN64System::CloseSystem();
m_Gui->SaveWindowLoc();
}
break; break;
case ID_FILE_ROMDIRECTORY: case ID_FILE_ROMDIRECTORY:
WriteTrace(TraceUserInterface, TraceDebug, "ID_FILE_ROMDIRECTORY 1"); WriteTrace(TraceUserInterface, TraceDebug, "ID_FILE_ROMDIRECTORY 1");