memset the MENUITEMINFO just to be safe.
This commit is contained in:
parent
02a4079540
commit
ece5173b82
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue