Commit 28e17a75 authored by Alexandre Julliard's avatar Alexandre Julliard

ole32/tests: Don't use sizeof in ok() to avoid printf format warnings.

parent cba2c847
......@@ -1981,7 +1981,7 @@ static void test_marshal_CLIPFORMAT(void)
CLIPFORMAT cf2;
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);
CLIPFORMAT_UserMarshal(&flags, buffer, &cf);
......@@ -2007,7 +2007,7 @@ static void test_marshal_HWND(void)
wireHWND wirehwnd;
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);
HWND_UserMarshal(&flags, buffer, &hwnd);
......
......@@ -304,9 +304,9 @@ static const BYTE expected_gc_moniker_comparison_data[] =
static void test_moniker(
const char *testname, IMoniker *moniker,
const BYTE *expected_moniker_marshal_data, size_t sizeof_expected_moniker_marshal_data,
const BYTE *expected_moniker_saved_data, size_t sizeof_expected_moniker_saved_data,
const BYTE *expected_moniker_comparison_data, size_t sizeof_expected_moniker_comparison_data,
const BYTE *expected_moniker_marshal_data, unsigned int sizeof_expected_moniker_marshal_data,
const BYTE *expected_moniker_saved_data, unsigned int sizeof_expected_moniker_saved_data,
const BYTE *expected_moniker_comparison_data, unsigned int sizeof_expected_moniker_comparison_data,
LPCWSTR expected_display_name)
{
IStream * stream;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment