mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
memset the MENUITEMINFO just to be safe.
This commit is contained in:
1 parent
02a4079540
commit
ece5173b82
1 file changed
+2
-1
@@ -309,6 +309,7 @@ namespace MainWindow
|
||||
|
||||
// Get the new menu's info and then set its ID so we can have it be translatable.
|
||||
MENUITEMINFO mii;
|
||||
memset(&mii, 0, sizeof(MENUITEMINFO));
|
||||
mii.cbSize = sizeof(MENUITEMINFO);
|
||||
GetMenuItemInfo(emulationSubMenu, SUBMENU_SYSTEM_LANGUAGE, TRUE, &mii);
|
||||
mii.fMask = MIIM_ID;
|
||||
@@ -1352,7 +1353,7 @@ namespace MainWindow
|
||||
g_Config.languageIni = countryCodes[index];
|
||||
|
||||
if(i18nrepo.LoadIni(g_Config.languageIni)) {
|
||||
NativeMessageReceived("language", g_Config.languageIni.c_str());
|
||||
NativeMessageReceived("language", "");
|
||||
PostMessage(hwndMain, WM_USER_UPDATE_UI, 0, 0);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user