More DPRINTs added for better tracing of locale-related calls, but NDEBUG is defined.

svn path=/trunk/; revision=14825
This commit is contained in:
Aleksey Bragin 2005-04-26 21:23:43 +00:00
parent 23e1c587a2
commit 037d9d7e8b

View file

@ -350,7 +350,7 @@ EnumSystemLocalesW (
while (result != STATUS_NO_MORE_ENTRIES) while (result != STATUS_NO_MORE_ENTRIES)
{ {
int i; int i;
TCHAR lpLocale[9]; WCHAR lpLocale[9];
// TODO: Here we should check, in case dwFlags & LCID_INSTALLED is specified, // TODO: Here we should check, in case dwFlags & LCID_INSTALLED is specified,
// if this locale is really installed // if this locale is really installed
@ -361,7 +361,7 @@ EnumSystemLocalesW (
lpLocale[8]=0; lpLocale[8]=0;
DPRINT1("Locale=%s\n", lpLocale); DPRINT1("Locale=%S\n", lpLocale);
// Call Enum func // Call Enum func
if (!lpLocaleEnumProc((LPWSTR)lpLocale)) if (!lpLocaleEnumProc((LPWSTR)lpLocale))
@ -695,6 +695,8 @@ GetLocaleInfoW (
} }
if (!cchData) lpLCData = NULL; if (!cchData) lpLCData = NULL;
DPRINT1("Info for locale: %x\n", Locale); // REMOVE Fireball
if (Locale == LOCALE_NEUTRAL || Locale == LOCALE_SYSTEM_DEFAULT) Locale = GetSystemDefaultLCID(); if (Locale == LOCALE_NEUTRAL || Locale == LOCALE_SYSTEM_DEFAULT) Locale = GetSystemDefaultLCID();
else if (Locale == LOCALE_USER_DEFAULT) Locale = GetUserDefaultLCID(); else if (Locale == LOCALE_USER_DEFAULT) Locale = GetUserDefaultLCID();