From 8761a1d5df422c406dd267df60a592137de5d44e Mon Sep 17 00:00:00 2001 From: Detlef Riekenberg Date: Tue, 5 Jul 2005 12:40:25 +0000 Subject: [PATCH] LoadImageW: Fix type of TRACE parameter. --- dlls/user/cursoricon.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/dlls/user/cursoricon.c b/dlls/user/cursoricon.c index 492755c544e..b730a7615cb 100644 --- a/dlls/user/cursoricon.c +++ b/dlls/user/cursoricon.c @@ -2225,13 +2225,9 @@ HANDLE WINAPI LoadImageA( HINSTANCE hinst, LPCSTR name, UINT type, HANDLE WINAPI LoadImageW( HINSTANCE hinst, LPCWSTR name, UINT type, INT desiredx, INT desiredy, UINT loadflags ) { - if (HIWORD(name)) { - TRACE_(resource)("(%p,%p,%d,%d,%d,0x%08x)\n", - hinst,name,type,desiredx,desiredy,loadflags); - } else { - TRACE_(resource)("(%p,%p,%d,%d,%d,0x%08x)\n", - hinst,name,type,desiredx,desiredy,loadflags); - } + TRACE_(resource)("(%p,%s,%d,%d,%d,0x%08x)\n", + hinst,debugstr_w(name),type,desiredx,desiredy,loadflags); + if (loadflags & LR_DEFAULTSIZE) { if (type == IMAGE_ICON) { if (!desiredx) desiredx = GetSystemMetrics(SM_CXICON);