Update Main Menu Class.cpp

no longer need hotfix
This commit is contained in:
Nekokabu 2015-12-02 00:49:30 +09:00
parent 3c130c680a
commit 598bc00851
1 changed files with 3 additions and 9 deletions

View File

@ -734,10 +734,7 @@ void CMainMenu::FillOutMenu(HMENU hMenu)
}
stdstr_f MenuString("&%d %s", (count + 1) % 10, LastRom.c_str());
WCHAR *w_LastRom = new WCHAR[MenuString.length() + 1];
::mbstowcs(w_LastRom, MenuString.c_str(), MenuString.length() + 1);
RecentRomMenu.push_back(MENU_ITEM(ID_RECENT_ROM_START + count, EMPTY_STRING, EMPTY_STDSTR, NULL, w_LastRom));
delete[] w_LastRom;
RecentRomMenu.push_back(MENU_ITEM(ID_RECENT_ROM_START + count, EMPTY_STRING, EMPTY_STDSTR, NULL, MenuString.ToUTF16(CP_ACP).c_str()));
}
/* Recent Dir
@ -755,10 +752,7 @@ void CMainMenu::FillOutMenu(HMENU hMenu)
stdstr_f MenuString("&%d %s", (count + 1) % 10, LastDir.c_str());
WCHAR *w_LastDir = new WCHAR[MenuString.length() + 1];
::mbstowcs(w_LastDir, MenuString.c_str(), MenuString.length() + 1);
RecentDirMenu.push_back(MENU_ITEM(ID_RECENT_DIR_START + count, EMPTY_STRING, EMPTY_STDSTR, NULL, w_LastDir));
delete[] w_LastDir;
RecentDirMenu.push_back(MENU_ITEM(ID_RECENT_DIR_START + count, EMPTY_STRING, EMPTY_STDSTR, NULL, MenuString.ToUTF16(CP_ACP).c_str()));
}
/* File Menu
@ -1279,4 +1273,4 @@ void CMainMenu::ResetMenu(void)
ResetAccelerators();
WriteTrace(TraceDebug, __FUNCTION__ ": Done");
}
}