dlls: Print HRESULT as 32bit value.

This commit is contained in:
Nikolay Sivov 2014-01-28 09:46:35 +04:00 committed by Alexandre Julliard
parent cbf55d8251
commit acea0eea5d
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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;
}
}

View File

@ -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)