mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
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:
parent
26bfaa0941
commit
fc2d392cac
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue