{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);
break;
case ID_FILE_ENDEMULATION:
WriteTrace(TraceUserInterface, TraceDebug, "ID_FILE_ENDEMULATION");
CN64System::CloseSystem();
m_Gui->SaveWindowLoc();
{
CGuard Guard(m_CS);
WriteTrace(TraceUserInterface, TraceDebug, "ID_FILE_ENDEMULATION");
CN64System::CloseSystem();
m_Gui->SaveWindowLoc();
}
break;
case ID_FILE_ROMDIRECTORY:
WriteTrace(TraceUserInterface, TraceDebug, "ID_FILE_ROMDIRECTORY 1");