Minor changes into a way locales are get and listed
Modified: trunk/reactos/lib/cpl/intl/locale.c
_____
Modified: trunk/reactos/lib/cpl/intl/locale.c
--- trunk/reactos/lib/cpl/intl/locale.c 2005-04-26 20:39:02 UTC (rev
14823)
+++ trunk/reactos/lib/cpl/intl/locale.c 2005-04-26 21:21:32 UTC (rev
14824)
@@ -47,7 +47,8 @@
TCHAR lang[255];
int index;
- swscanf(lpLocale, L"%lx", &lcid); // maybe use wcstoul?
+ //swscanf(lpLocale, L"%lx", &lcid); // maybe use wcstoul?
+ lcid = wcstoul(lpLocale, NULL, 16);
GetLocaleInfo(lcid, LOCALE_SLANGUAGE, lang, sizeof(lang));
@@ -74,7 +75,7 @@
EnumSystemLocalesW(LocalesEnumProc, LCID_SUPPORTED);
// Select current locale
- GetLocaleInfo(GetUserDefaultLCID(), LOCALE_SLANGUAGE, langSel,
sizeof(langSel)); // or should it be System?
+ GetLocaleInfo(GetUserDefaultLCID(), LOCALE_SLANGUAGE, langSel,
sizeof(langSel)); // or should it be System and not user?
SendMessageW(hList,
CB_SELECTSTRING,