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
b27027ef
Commit
b27027ef
authored
Jan 07, 2013
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 08, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmloader: Check return of CoCreateInstance (Coverity).
parent
2cd1fed6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
loader.c
dlls/dmloader/loader.c
+5
-1
No files found.
dlls/dmloader/loader.c
View file @
b27027ef
...
@@ -463,7 +463,11 @@ static HRESULT WINAPI IDirectMusicLoaderImpl_SetObject(IDirectMusicLoader8 *ifac
...
@@ -463,7 +463,11 @@ static HRESULT WINAPI IDirectMusicLoaderImpl_SetObject(IDirectMusicLoader8 *ifac
}
}
/* create object */
/* create object */
CoCreateInstance
(
&
pDesc
->
guidClass
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectMusicObject
,
(
LPVOID
*
)
&
pObject
);
hr
=
CoCreateInstance
(
&
pDesc
->
guidClass
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectMusicObject
,
(
LPVOID
*
)
&
pObject
);
if
(
FAILED
(
hr
))
{
ERR
(
"Object creation of %s failed 0x%08x
\n
"
,
debugstr_guid
(
&
pDesc
->
guidClass
),
hr
);
return
DMUS_E_LOADER_FAILEDOPEN
;
}
/* *sigh*... some ms objects have lousy implementation of ParseDescriptor that clears input descriptor :( */
/* *sigh*... some ms objects have lousy implementation of ParseDescriptor that clears input descriptor :( */
#ifdef NOW_WE_ARE_FREE
#ifdef NOW_WE_ARE_FREE
...
...
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