From 037d9d7e8ba08cc859775d665d2b11561a7f70c6 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Tue, 26 Apr 2005 21:23:43 +0000 Subject: [PATCH] More DPRINTs added for better tracing of locale-related calls, but NDEBUG is defined. svn path=/trunk/; revision=14825 --- reactos/lib/kernel32/misc/lang.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/reactos/lib/kernel32/misc/lang.c b/reactos/lib/kernel32/misc/lang.c index 1e9887f0b37..8fe80ffe2c5 100644 --- a/reactos/lib/kernel32/misc/lang.c +++ b/reactos/lib/kernel32/misc/lang.c @@ -350,7 +350,7 @@ EnumSystemLocalesW ( while (result != STATUS_NO_MORE_ENTRIES) { int i; - TCHAR lpLocale[9]; + WCHAR lpLocale[9]; // TODO: Here we should check, in case dwFlags & LCID_INSTALLED is specified, // if this locale is really installed @@ -361,7 +361,7 @@ EnumSystemLocalesW ( lpLocale[8]=0; - DPRINT1("Locale=%s\n", lpLocale); + DPRINT1("Locale=%S\n", lpLocale); // Call Enum func if (!lpLocaleEnumProc((LPWSTR)lpLocale)) @@ -695,6 +695,8 @@ GetLocaleInfoW ( } if (!cchData) lpLCData = NULL; + DPRINT1("Info for locale: %x\n", Locale); // REMOVE Fireball + if (Locale == LOCALE_NEUTRAL || Locale == LOCALE_SYSTEM_DEFAULT) Locale = GetSystemDefaultLCID(); else if (Locale == LOCALE_USER_DEFAULT) Locale = GetUserDefaultLCID();