Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
7408a3a7
Commit
7408a3a7
authored
Nov 09, 2015
by
Qian Hong
Committed by
Alexandre Julliard
Nov 11, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/tests: Add NULL pointer tests for IGraphBuilder.
Signed-off-by:
Qian Hong
<
qhong@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
682291fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
filtergraph.c
dlls/quartz/tests/filtergraph.c
+13
-0
No files found.
dlls/quartz/tests/filtergraph.c
View file @
7408a3a7
...
...
@@ -180,6 +180,9 @@ static void test_graph_builder(void)
ok
(
hr
==
S_OK
,
"CoCreateInstance failed with %x
\n
"
,
hr
);
ok
(
pF
!=
NULL
,
"pF is NULL
\n
"
);
hr
=
IGraphBuilder_AddFilter
(
pgraph
,
NULL
,
testFilterW
);
ok
(
hr
==
E_POINTER
,
"IGraphBuilder_AddFilter returned %x
\n
"
,
hr
);
/* add the two filters to the graph */
hr
=
IGraphBuilder_AddFilter
(
pgraph
,
pF
,
testFilterW
);
ok
(
hr
==
S_OK
,
"failed to add pF to the graph: %x
\n
"
,
hr
);
...
...
@@ -204,6 +207,16 @@ static void test_graph_builder(void)
hr
=
IGraphBuilder_FindFilterByName
(
pgraph
,
testFilterW
,
NULL
);
ok
(
hr
==
E_POINTER
,
"IGraphBuilder_FindFilterByName returned %x
\n
"
,
hr
);
hr
=
IGraphBuilder_Connect
(
pgraph
,
NULL
,
pIn
);
ok
(
hr
==
E_POINTER
,
"IGraphBuilder_Connect returned %x
\n
"
,
hr
);
hr
=
IGraphBuilder_Connect
(
pgraph
,
pIn
,
NULL
);
ok
(
hr
==
E_POINTER
,
"IGraphBuilder_Connect returned %x
\n
"
,
hr
);
hr
=
IGraphBuilder_Connect
(
pgraph
,
pIn
,
pIn
);
todo_wine
ok
(
hr
==
VFW_E_CANNOT_CONNECT
,
"IGraphBuilder_Connect returned %x
\n
"
,
hr
);
if
(
pIn
)
IPin_Release
(
pIn
);
if
(
pEnum
)
IEnumPins_Release
(
pEnum
);
if
(
pF
)
IBaseFilter_Release
(
pF
);
...
...
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