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
59efc5ce
Commit
59efc5ce
authored
May 06, 2015
by
Marcus Meissner
Committed by
Alexandre Julliard
May 06, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: Check return code of create_dmgraph (Coverity).
parent
c2ecf3b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
audiopath.c
dlls/dmime/audiopath.c
+7
-2
No files found.
dlls/dmime/audiopath.c
View file @
59efc5ce
...
...
@@ -132,6 +132,7 @@ static HRESULT WINAPI IDirectMusicAudioPathImpl_GetObjectInPath (IDirectMusicAud
REFGUID
guidObject
,
WORD
dwIndex
,
REFGUID
iidInterface
,
void
**
ppObject
)
{
struct
IDirectMusicAudioPathImpl
*
This
=
impl_from_IDirectMusicAudioPath
(
iface
);
HRESULT
hr
;
FIXME
(
"(%p, %d, %d, %d, %s, %d, %s, %p): stub
\n
"
,
This
,
dwPChannel
,
dwStage
,
dwBuffer
,
debugstr_dmguid
(
guidObject
),
dwIndex
,
debugstr_dmguid
(
iidInterface
),
ppObject
);
...
...
@@ -169,7 +170,9 @@ static HRESULT WINAPI IDirectMusicAudioPathImpl_GetObjectInPath (IDirectMusicAud
if
(
IsEqualIID
(
iidInterface
,
&
IID_IDirectMusicGraph
))
{
if
(
NULL
==
This
->
pToolGraph
)
{
IDirectMusicGraphImpl
*
pGraph
;
create_dmgraph
(
&
IID_IDirectMusicGraph
,
(
void
**
)
&
pGraph
);
hr
=
create_dmgraph
(
&
IID_IDirectMusicGraph
,
(
void
**
)
&
pGraph
);
if
(
FAILED
(
hr
))
return
hr
;
This
->
pToolGraph
=
(
IDirectMusicGraph
*
)
pGraph
;
}
*
ppObject
=
This
->
pToolGraph
;
...
...
@@ -200,7 +203,9 @@ static HRESULT WINAPI IDirectMusicAudioPathImpl_GetObjectInPath (IDirectMusicAud
IDirectMusicPerformance8_GetGraph
(
This
->
pPerf
,
&
pPerfoGraph
);
if
(
NULL
==
pPerfoGraph
)
{
IDirectMusicGraphImpl
*
pGraph
=
NULL
;
create_dmgraph
(
&
IID_IDirectMusicGraph
,
(
void
**
)
&
pGraph
);
hr
=
create_dmgraph
(
&
IID_IDirectMusicGraph
,
(
void
**
)
&
pGraph
);
if
(
FAILED
(
hr
))
return
hr
;
IDirectMusicPerformance8_SetGraph
(
This
->
pPerf
,
(
IDirectMusicGraph
*
)
pGraph
);
/* we need release as SetGraph do an AddRef */
IDirectMusicGraph_Release
((
LPDIRECTMUSICGRAPH
)
pGraph
);
...
...
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