use _wcsupr to make swedish chater display right when it change langues

this fix maby also fix rus langues display right now after langues change


svn path=/trunk/; revision=15204
This commit is contained in:
Magnus Olsen 2005-05-11 09:56:24 +00:00
parent 26bfaa0941
commit fc2d392cac

View file

@ -107,7 +107,7 @@ void SetNewLocale(LCID lcid)
wsprintf(value, L"%04x", (DWORD)lcid);
RegSetValueExW(localeKey, L"Locale", 0, REG_SZ, (BYTE *)value, sizeof(value));
RegSetValueExW(localeKey, L"Locale", 0, REG_SZ, (BYTE *) _wcsupr(value), sizeof(value));
RegCloseKey(localeKey);
// Set language
@ -116,8 +116,8 @@ void SetNewLocale(LCID lcid)
if (ret != ERROR_SUCCESS)
return;
RegSetValueExW(langKey, L"Default", 0, REG_SZ, (BYTE *)value, sizeof(value));
RegSetValueExW(langKey, L"InstallLanguage", 0, REG_SZ, (BYTE *)value, sizeof(value));
RegSetValueExW(langKey, L"Default", 0, REG_SZ, (BYTE *)_wcsupr(value), sizeof(value));
RegSetValueExW(langKey, L"InstallLanguage", 0, REG_SZ, (BYTE *) _wcsupr(value), sizeof(value));
RegCloseKey(langKey);
}