[USER32]
authorThomas Faber <thomas.faber@reactos.org>
Fri, 7 Aug 2015 17:30:12 +0000 (17:30 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Fri, 7 Aug 2015 17:30:12 +0000 (17:30 +0000)
- Make a debug print less useless

svn path=/trunk/; revision=68617

reactos/win32ss/user/user32/windows/cursoricon.c

index c0b29e3..df9a42b 100644 (file)
@@ -1862,14 +1862,14 @@ CURSORICON_CopyImage(
         if (!IS_INTRESOURCE(ustrRsrc.Buffer))
             ustrRsrc.Buffer[ustrRsrc.Length/sizeof(WCHAR)] = UNICODE_NULL;
         
         if (!IS_INTRESOURCE(ustrRsrc.Buffer))
             ustrRsrc.Buffer[ustrRsrc.Length/sizeof(WCHAR)] = UNICODE_NULL;
         
-        TRACE("Got module %S, resource %p (%S).\n", ustrModule.Buffer,
+        TRACE("Got module %wZ, resource %p (%S).\n", &ustrModule,
             ustrRsrc.Buffer, IS_INTRESOURCE(ustrRsrc.Buffer) ? L"" : ustrRsrc.Buffer);
 
         /* Get the module handle */
         if (!GetModuleHandleExW(0, ustrModule.Buffer, &hModule))
         {
             /* This should never happen */
             ustrRsrc.Buffer, IS_INTRESOURCE(ustrRsrc.Buffer) ? L"" : ustrRsrc.Buffer);
 
         /* Get the module handle */
         if (!GetModuleHandleExW(0, ustrModule.Buffer, &hModule))
         {
             /* This should never happen */
-            ERR("Invalid handle?.\n");
+            ERR("Invalid handle? Module='%wZ', error %lu.\n", &ustrModule, GetLastError());
             SetLastError(ERROR_INVALID_PARAMETER);
             goto leave;
         }
             SetLastError(ERROR_INVALID_PARAMETER);
             goto leave;
         }