mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 12:23:31 +00:00
[DSOUND]
- Do not call CoUninitialize if CoInitialize failed. ROSTESTS-123 svn path=/trunk/; revision=63756
This commit is contained in:
@@ -150,7 +150,8 @@ static HRESULT get_mmdevenum(IMMDeviceEnumerator **devenum)
|
||||
hr = CoCreateInstance(&CLSID_MMDeviceEnumerator, NULL,
|
||||
CLSCTX_INPROC_SERVER, &IID_IMMDeviceEnumerator, (void**)devenum);
|
||||
if(FAILED(hr)){
|
||||
CoUninitialize();
|
||||
if(SUCCEEDED(init_hr))
|
||||
CoUninitialize();
|
||||
*devenum = NULL;
|
||||
ERR("CoCreateInstance failed: %08x\n", hr);
|
||||
return hr;
|
||||
|
||||
Reference in New Issue
Block a user