From fc2d392cacf233f0dac464f91216cda89f9d82f6 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Wed, 11 May 2005 09:56:24 +0000 Subject: [PATCH] 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 --- reactos/lib/cpl/intl/locale.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/lib/cpl/intl/locale.c b/reactos/lib/cpl/intl/locale.c index 4f01c2a3082..d86137b5f5f 100644 --- a/reactos/lib/cpl/intl/locale.c +++ b/reactos/lib/cpl/intl/locale.c @@ -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); }