Fix crashing DPRINT into LdrFindResource_U.
Thanks to ThFabba for the tip.

svn path=/trunk/; revision=61015
This commit is contained in:
Sylvain Petreolle 2013-11-17 14:11:08 +00:00
parent 6abf558a05
commit 3755f648f7

View 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 );
}