Nikolay Sivov : dlls: Print HRESULT as 32bit value.

Alexandre Julliard julliard at winehq.org
Tue Jan 28 13:33:23 CST 2014


Module: wine
Branch: master
Commit: acea0eea5d96bdf9f119fdea65b1a1295f1ac71f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=acea0eea5d96bdf9f119fdea65b1a1295f1ac71f

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Tue Jan 28 09:46:35 2014 +0400

dlls: Print HRESULT as 32bit value.

---

 dlls/dispex/tests/marshal.c    |    2 +-
 dlls/dplayx/dplayx_global.c    |    2 +-
 dlls/oleaut32/tests/tmarshal.c |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/dispex/tests/marshal.c b/dlls/dispex/tests/marshal.c
index 1b2ef61..0211cd7 100644
--- a/dlls/dispex/tests/marshal.c
+++ b/dlls/dispex/tests/marshal.c
@@ -31,7 +31,7 @@
 
 #include "wine/test.h"
 
-#define ok_ole_success(hr, func) ok(hr == S_OK, #func " failed with error 0x%08lx\n", (unsigned long int)hr)
+#define ok_ole_success(hr, func) ok(hr == S_OK, #func " failed with error 0x%08x\n", hr)
 
 #define RELEASEMARSHALDATA WM_USER
 
diff --git a/dlls/dplayx/dplayx_global.c b/dlls/dplayx/dplayx_global.c
index d7f3cca..64c4bc3 100644
--- a/dlls/dplayx/dplayx_global.c
+++ b/dlls/dplayx/dplayx_global.c
@@ -1200,7 +1200,7 @@ LPCSTR DPLAYX_HresultToString(HRESULT hr)
       /* For errors not in the list, return HRESULT as a string
          This part is not thread safe */
       WARN( "Unknown error 0x%08x\n", hr );
-      wsprintfA( szTempStr, "0x%08lx", hr );
+      wsprintfA( szTempStr, "0x%08x", hr );
       return szTempStr;
   }
 }
diff --git a/dlls/oleaut32/tests/tmarshal.c b/dlls/oleaut32/tests/tmarshal.c
index 1a3effe..5753871 100644
--- a/dlls/oleaut32/tests/tmarshal.c
+++ b/dlls/oleaut32/tests/tmarshal.c
@@ -32,7 +32,7 @@
 static HRESULT (WINAPI *pVarAdd)(LPVARIANT,LPVARIANT,LPVARIANT);
 
 
-#define ok_ole_success(hr, func) ok(hr == S_OK, #func " failed with error 0x%08lx\n", (unsigned long int)hr)
+#define ok_ole_success(hr, func) ok(hr == S_OK, #func " failed with error 0x%08x\n", hr)
 
 /* ULL suffix is not portable */
 #define ULL_CONST(dw1, dw2) ((((ULONGLONG)dw1) << 32) | (ULONGLONG)dw2)




More information about the wine-cvs mailing list