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
5ea119a3
Commit
5ea119a3
authored
Jan 27, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 27, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Fix NULL pointer dereference (Coverity).
parent
a79868e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
control.c
dlls/quartz/control.c
+2
-2
filtergraph.c
dlls/quartz/tests/filtergraph.c
+5
-0
No files found.
dlls/quartz/control.c
View file @
5ea119a3
...
...
@@ -591,9 +591,9 @@ HRESULT WINAPI MediaSeekingImpl_SetPositions(IMediaSeeking * iface, LONGLONG * p
This
->
llCurrent
=
llNewCurrent
;
This
->
llStop
=
llNewStop
;
if
(
dwCurrentFlags
&
AM_SEEKING_ReturnTime
)
if
(
pCurrent
&&
(
dwCurrentFlags
&
AM_SEEKING_ReturnTime
)
)
*
pCurrent
=
llNewCurrent
;
if
(
dwStopFlags
&
AM_SEEKING_ReturnTime
)
if
(
pStop
&&
(
dwStopFlags
&
AM_SEEKING_ReturnTime
)
)
*
pStop
=
llNewStop
;
ForwardCmdSeek
(
This
->
crst
,
This
->
pUserData
,
fwd_setposition
,
&
args
);
...
...
dlls/quartz/tests/filtergraph.c
View file @
5ea119a3
...
...
@@ -272,6 +272,11 @@ static void test_mediacontrol(void)
ok
(
hr
==
S_OK
,
"GetCurrentPosition failed: %08x
\n
"
,
hr
);
ok
(
pos
==
0
,
"Position != 0 (%x%08x)
\n
"
,
(
DWORD
)(
pos
>>
32
),
(
DWORD
)
pos
);
hr
=
IMediaSeeking_SetPositions
(
seeking
,
NULL
,
AM_SEEKING_ReturnTime
,
NULL
,
AM_SEEKING_NoPositioning
);
ok
(
hr
==
S_OK
,
"SetPositions failed: %08x
\n
"
,
hr
);
hr
=
IMediaSeeking_SetPositions
(
seeking
,
NULL
,
AM_SEEKING_NoPositioning
,
NULL
,
AM_SEEKING_ReturnTime
);
ok
(
hr
==
S_OK
,
"SetPositions failed: %08x
\n
"
,
hr
);
IMediaFilter_SetSyncSource
(
filter
,
NULL
);
pos
=
0xdeadbeef
;
hr
=
IMediaSeeking_GetCurrentPosition
(
seeking
,
&
pos
);
...
...
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