Commit 74452857 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent d90f6816
...@@ -870,8 +870,7 @@ static void test_ReleaseBindInfo(void) ...@@ -870,8 +870,7 @@ static void test_ReleaseBindInfo(void)
bi.pUnk = &unk; bi.pUnk = &unk;
SET_EXPECT(unk_Release); SET_EXPECT(unk_Release);
ReleaseBindInfo(&bi); ReleaseBindInfo(&bi);
ok(bi.cbSize == sizeof(BINDINFO), "bi.cbSize=%ld, expected %d\n", ok(bi.cbSize == sizeof(BINDINFO), "bi.cbSize=%ld\n", bi.cbSize);
bi.cbSize, sizeof(bi));
ok(bi.pUnk == NULL, "bi.pUnk=%p, expected NULL\n", bi.pUnk); ok(bi.pUnk == NULL, "bi.pUnk=%p, expected NULL\n", bi.pUnk);
CHECK_CALLED(unk_Release); CHECK_CALLED(unk_Release);
...@@ -879,8 +878,7 @@ static void test_ReleaseBindInfo(void) ...@@ -879,8 +878,7 @@ static void test_ReleaseBindInfo(void)
bi.cbSize = offsetof(BINDINFO, pUnk); bi.cbSize = offsetof(BINDINFO, pUnk);
bi.pUnk = &unk; bi.pUnk = &unk;
ReleaseBindInfo(&bi); ReleaseBindInfo(&bi);
ok(bi.cbSize == offsetof(BINDINFO, pUnk), "bi.cbSize=%ld, expected %d\n", ok(bi.cbSize == offsetof(BINDINFO, pUnk), "bi.cbSize=%ld\n", bi.cbSize);
bi.cbSize, sizeof(bi));
ok(bi.pUnk == &unk, "bi.pUnk=%p, expected %p\n", bi.pUnk, &unk); ok(bi.pUnk == &unk, "bi.pUnk=%p, expected %p\n", bi.pUnk, &unk);
memset(&bi, 0, sizeof(bi)); memset(&bi, 0, sizeof(bi));
......
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