[RTL]
authorSylvain Petreolle <spetreolle@yahoo.fr>
Sun, 17 Nov 2013 14:11:08 +0000 (14:11 +0000)
committerSylvain Petreolle <spetreolle@yahoo.fr>
Sun, 17 Nov 2013 14:11:08 +0000 (14:11 +0000)
Fix crashing DPRINT into LdrFindResource_U.
Thanks to ThFabba for the tip.

svn path=/trunk/; revision=61015

reactos/lib/rtl/res.c

index 6b48f5e..7950e25 100644 (file)
@@ -218,9 +218,9 @@ LdrFindResource_U(PVOID BaseAddress,
     {
         if (ResourceInfo)
         {
-            DPRINT( "module %p type %ws name %ws lang %04lx level %lu\n",
-                     BaseAddress, (LPCWSTR)ResourceInfo->Type,
-                     Level > 1 ? (LPCWSTR)ResourceInfo->Name : L"",
+            DPRINT1( "module %p type %lx name %lx lang %04lx level %lu\n",
+                     BaseAddress, ResourceInfo->Type, 
+                     Level > 1 ? ResourceInfo->Name : 0,
                      Level > 2 ? ResourceInfo->Language : 0, Level );
         }