Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
9974960f
Commit
9974960f
authored
Jul 06, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmvcore/tests: Avoid sizeof() in traces.
parent
08cfcb71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
wmvcore.c
dlls/wmvcore/tests/wmvcore.c
+3
-6
No files found.
dlls/wmvcore/tests/wmvcore.c
View file @
9974960f
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment