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
b4811dbf
Commit
b4811dbf
authored
Apr 15, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/tests: Fix test crash on Vista.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3a0ffe5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
14 deletions
+6
-14
mf.c
dlls/mf/tests/mf.c
+6
-14
No files found.
dlls/mf/tests/mf.c
View file @
b4811dbf
...
...
@@ -298,6 +298,12 @@ static void test_topology(void)
ok
(
size
==
1
,
"Unexpected item count.
\n
"
);
IMFCollection_Release
(
collection
);
hr
=
MFCreateTopologyNode
(
MF_TOPOLOGY_OUTPUT_NODE
,
&
node
);
ok
(
hr
==
S_OK
,
"Failed to create a node, hr %#x.
\n
"
,
hr
);
hr
=
IMFTopology_AddNode
(
topology
,
node
);
ok
(
hr
==
S_OK
,
"Failed to add a node, hr %#x.
\n
"
,
hr
);
IMFTopologyNode_Release
(
node
);
hr
=
IMFTopology_GetOutputNodeCollection
(
topology
,
&
collection
);
ok
(
hr
==
S_OK
||
broken
(
hr
==
E_FAIL
)
/* before Win8 */
,
"Failed to get output node collection, hr %#x.
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
...
...
@@ -305,20 +311,6 @@ static void test_topology(void)
ok
(
!!
collection
,
"Unexpected object pointer.
\n
"
);
hr
=
IMFCollection_GetElementCount
(
collection
,
&
size
);
ok
(
hr
==
S_OK
,
"Failed to get item count, hr %#x.
\n
"
,
hr
);
ok
(
!
size
,
"Unexpected item count.
\n
"
);
IMFCollection_Release
(
collection
);
hr
=
MFCreateTopologyNode
(
MF_TOPOLOGY_OUTPUT_NODE
,
&
node
);
ok
(
hr
==
S_OK
,
"Failed to create a node, hr %#x.
\n
"
,
hr
);
hr
=
IMFTopology_AddNode
(
topology
,
node
);
ok
(
hr
==
S_OK
,
"Failed to add a node, hr %#x.
\n
"
,
hr
);
IMFTopologyNode_Release
(
node
);
hr
=
IMFTopology_GetOutputNodeCollection
(
topology
,
&
collection
);
ok
(
hr
==
S_OK
,
"Failed to get output node collection, hr %#x.
\n
"
,
hr
);
ok
(
!!
collection
,
"Unexpected object pointer.
\n
"
);
hr
=
IMFCollection_GetElementCount
(
collection
,
&
size
);
ok
(
hr
==
S_OK
,
"Failed to get item count, hr %#x.
\n
"
,
hr
);
ok
(
size
==
1
,
"Unexpected item count.
\n
"
);
IMFCollection_Release
(
collection
);
}
...
...
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