From 3755f648f790f77d50a8f7a51855cf1ce80e78bc Mon Sep 17 00:00:00 2001 From: Sylvain Petreolle Date: Sun, 17 Nov 2013 14:11:08 +0000 Subject: [PATCH] [RTL] Fix crashing DPRINT into LdrFindResource_U. Thanks to ThFabba for the tip. svn path=/trunk/; revision=61015 --- reactos/lib/rtl/res.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/lib/rtl/res.c b/reactos/lib/rtl/res.c index 6b48f5ef9ae..7950e250288 100644 --- a/reactos/lib/rtl/res.c +++ b/reactos/lib/rtl/res.c @@ -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 ); }