ole32/tests: Don't use sizeof in ok() to avoid printf format warnings.
This commit is contained in:
parent
cba2c84741
commit
28e17a75af
|
@ -1981,7 +1981,7 @@ static void test_marshal_CLIPFORMAT(void)
|
||||||
CLIPFORMAT cf2;
|
CLIPFORMAT cf2;
|
||||||
|
|
||||||
size = CLIPFORMAT_UserSize(&flags, 0, &cf);
|
size = CLIPFORMAT_UserSize(&flags, 0, &cf);
|
||||||
ok(size == sizeof(*wirecf) + sizeof(cf_marshaled), "Size should be %d, instead of %ld\n", sizeof(*wirecf) + sizeof(cf_marshaled), size);
|
ok(size == sizeof(*wirecf) + sizeof(cf_marshaled), "Wrong size %ld\n", size);
|
||||||
|
|
||||||
buffer = HeapAlloc(GetProcessHeap(), 0, size);
|
buffer = HeapAlloc(GetProcessHeap(), 0, size);
|
||||||
CLIPFORMAT_UserMarshal(&flags, buffer, &cf);
|
CLIPFORMAT_UserMarshal(&flags, buffer, &cf);
|
||||||
|
@ -2007,7 +2007,7 @@ static void test_marshal_HWND(void)
|
||||||
wireHWND wirehwnd;
|
wireHWND wirehwnd;
|
||||||
|
|
||||||
size = HWND_UserSize(&flags, 0, &hwnd);
|
size = HWND_UserSize(&flags, 0, &hwnd);
|
||||||
ok(size == sizeof(*wirehwnd), "Size should be %d, instead of %ld\n", sizeof(*wirehwnd), size);
|
ok(size == sizeof(*wirehwnd), "Wrong size %ld\n", size);
|
||||||
|
|
||||||
buffer = HeapAlloc(GetProcessHeap(), 0, size);
|
buffer = HeapAlloc(GetProcessHeap(), 0, size);
|
||||||
HWND_UserMarshal(&flags, buffer, &hwnd);
|
HWND_UserMarshal(&flags, buffer, &hwnd);
|
||||||
|
|
|
@ -304,9 +304,9 @@ static const BYTE expected_gc_moniker_comparison_data[] =
|
||||||
|
|
||||||
static void test_moniker(
|
static void test_moniker(
|
||||||
const char *testname, IMoniker *moniker,
|
const char *testname, IMoniker *moniker,
|
||||||
const BYTE *expected_moniker_marshal_data, size_t sizeof_expected_moniker_marshal_data,
|
const BYTE *expected_moniker_marshal_data, unsigned int sizeof_expected_moniker_marshal_data,
|
||||||
const BYTE *expected_moniker_saved_data, size_t sizeof_expected_moniker_saved_data,
|
const BYTE *expected_moniker_saved_data, unsigned int sizeof_expected_moniker_saved_data,
|
||||||
const BYTE *expected_moniker_comparison_data, size_t sizeof_expected_moniker_comparison_data,
|
const BYTE *expected_moniker_comparison_data, unsigned int sizeof_expected_moniker_comparison_data,
|
||||||
LPCWSTR expected_display_name)
|
LPCWSTR expected_display_name)
|
||||||
{
|
{
|
||||||
IStream * stream;
|
IStream * stream;
|
||||||
|
|
Loading…
Reference in New Issue