mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
dmloader: Check return of CoCreateInstance (Coverity).
This commit is contained in:
parent
2cd1fed6ee
commit
b27027ef09
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue