[ros-diffs] [fireball] 14825: More DPRINTs added for better tracing of locale-related calls, but NDEBUG is defined.

fireball at svn.reactos.com fireball at svn.reactos.com
Tue Apr 26 23:23:45 CEST 2005


More DPRINTs added for better tracing of locale-related calls, but
NDEBUG is defined.
Modified: trunk/reactos/lib/kernel32/misc/lang.c
  _____  

Modified: trunk/reactos/lib/kernel32/misc/lang.c
--- trunk/reactos/lib/kernel32/misc/lang.c	2005-04-26 21:21:32 UTC
(rev 14824)
+++ trunk/reactos/lib/kernel32/misc/lang.c	2005-04-26 21:23:43 UTC
(rev 14825)
@@ -350,7 +350,7 @@

 	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 @@
 
 		lpLocale[8]=0;
 
-		DPRINT1("Locale=%s\n", lpLocale);
+		DPRINT1("Locale=%S\n", lpLocale);
 
 		// Call Enum func
 		if (!lpLocaleEnumProc((LPWSTR)lpLocale))
@@ -695,6 +695,8 @@
     }
     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();
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050426/3f5c6af4/attachment.html


More information about the Ros-diffs mailing list