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
a596cbb8
Commit
a596cbb8
authored
May 04, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 05, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: Fix handling of NULL out pointer in QI.
parent
51a4fce5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
segmentstate.c
dlls/dmime/segmentstate.c
+3
-0
dmime.c
dlls/dmime/tests/dmime.c
+3
-0
No files found.
dlls/dmime/segmentstate.c
View file @
a596cbb8
...
...
@@ -37,6 +37,9 @@ static HRESULT WINAPI DirectMusicSegmentState8_QueryInterface(IDirectMusicSegmen
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
if
(
!
ppobj
)
return
E_POINTER
;
*
ppobj
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
...
...
dlls/dmime/tests/dmime.c
View file @
a596cbb8
...
...
@@ -293,6 +293,9 @@ static void test_COM_segmentstate(void)
ok
(
refcount
==
4
,
"refcount == %u, expected 4
\n
"
,
refcount
);
refcount
=
IUnknown_Release
(
unk
);
hr
=
IDirectMusicSegmentState8_QueryInterface
(
dmss8
,
&
IID_IUnknown
,
NULL
);
ok
(
hr
==
E_POINTER
,
"got %08x
\n
"
,
hr
);
while
(
IDirectMusicSegmentState8_Release
(
dmss8
));
}
...
...
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