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
2d1a6016
Commit
2d1a6016
authored
Dec 05, 2007
by
Lei Zhang
Committed by
Alexandre Julliard
Dec 07, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Validate input for IFilterGraph_FindFilterByName.
parent
31aab429
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
filtergraph.c
dlls/quartz/filtergraph.c
+3
-1
filtergraph.c
dlls/quartz/tests/filtergraph.c
+2
-0
No files found.
dlls/quartz/filtergraph.c
View file @
2d1a6016
...
...
@@ -483,7 +483,8 @@ static HRESULT WINAPI GraphBuilder_FindFilterByName(IGraphBuilder *iface,
TRACE
(
"(%p/%p)->(%s (%p), %p)
\n
"
,
This
,
iface
,
debugstr_w
(
pName
),
pName
,
ppFilter
);
*
ppFilter
=
NULL
;
if
(
!
ppFilter
)
return
E_POINTER
;
for
(
i
=
0
;
i
<
This
->
nFilters
;
i
++
)
{
...
...
@@ -495,6 +496,7 @@ static HRESULT WINAPI GraphBuilder_FindFilterByName(IGraphBuilder *iface,
}
}
*
ppFilter
=
NULL
;
return
VFW_E_NOT_FOUND
;
}
...
...
dlls/quartz/tests/filtergraph.c
View file @
2d1a6016
...
...
@@ -143,6 +143,8 @@ static void test_graph_builder(void)
hr
=
IGraphBuilder_FindFilterByName
(
pgraph
,
testFilterW
,
&
pF2
);
ok
(
hr
==
S_OK
,
"IGraphBuilder_FindFilterByName returned %x
\n
"
,
hr
);
ok
(
pF2
!=
NULL
,
"IGraphBuilder_FindFilterByName returned NULL
\n
"
);
hr
=
IGraphBuilder_FindFilterByName
(
pgraph
,
testFilterW
,
NULL
);
ok
(
hr
==
E_POINTER
,
"IGraphBuilder_FindFilterByName returned %x
\n
"
,
hr
);
releasefiltergraph
();
}
...
...
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