Module: wine Branch: master Commit: 9974960f0cbc942e410485661b81afbd9eeabc77 URL: https://gitlab.winehq.org/wine/wine/-/commit/9974960f0cbc942e410485661b81afb...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Jul 6 18:14:31 2023 +0200
wmvcore/tests: Avoid sizeof() in traces.
---
dlls/wmvcore/tests/wmvcore.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/dlls/wmvcore/tests/wmvcore.c b/dlls/wmvcore/tests/wmvcore.c index 6071ac25ad7..f40ae37c0ce 100644 --- a/dlls/wmvcore/tests/wmvcore.c +++ b/dlls/wmvcore/tests/wmvcore.c @@ -1481,8 +1481,7 @@ static void test_stream_media_props(IWMStreamConfig *config, hr = IWMMediaProps_GetMediaType(props, mt, &ret_size); ok(hr == S_OK, "Got hr %#lx.\n", hr); ok(ret_size == size, "Expected size %lu, got %lu.\n", size, ret_size); - ok(size == sizeof(WM_MEDIA_TYPE) + mt->cbFormat, "Expected size %Iu, got %lu.\n", - sizeof(WM_MEDIA_TYPE) + mt->cbFormat, size); + ok(size == sizeof(WM_MEDIA_TYPE) + mt->cbFormat, "got %lu.\n", size); ok(IsEqualGUID(&mt->majortype, majortype), "Expected major type %s, got %s.\n", debugstr_guid(majortype), debugstr_guid(&mt->majortype)); todo_wine_if(todo_subtype) @@ -1687,8 +1686,7 @@ static void test_sync_reader_types(void) hr = IWMOutputMediaProps_GetMediaType(output_props, mt, &ret_size); ok(hr == S_OK, "Got hr %#lx.\n", hr); ok(ret_size == size, "Expected size %lu, got %lu.\n", size, ret_size); - ok(size == sizeof(WM_MEDIA_TYPE) + mt->cbFormat, "Expected size %Iu, got %lu.\n", - sizeof(WM_MEDIA_TYPE) + mt->cbFormat, size); + ok(size == sizeof(WM_MEDIA_TYPE) + mt->cbFormat, "got %lu.\n", size);
ok(IsEqualGUID(&mt->majortype, &majortype), "Got major type %s.\n", debugstr_guid(&mt->majortype));
@@ -3587,8 +3585,7 @@ static void test_async_reader_types(void) hr = IWMOutputMediaProps_GetMediaType(output_props, mt, &ret_size); ok(hr == S_OK, "Got hr %#lx.\n", hr); ok(ret_size == size, "Expected size %lu, got %lu.\n", size, ret_size); - ok(size == sizeof(WM_MEDIA_TYPE) + mt->cbFormat, "Expected size %Iu, got %lu.\n", - sizeof(WM_MEDIA_TYPE) + mt->cbFormat, size); + ok(size == sizeof(WM_MEDIA_TYPE) + mt->cbFormat, "got %lu.\n", size);
ok(IsEqualGUID(&mt->majortype, &majortype), "Got major type %s.\n", debugstr_guid(&mt->majortype));