Author: tfaber
Date: Tue Jul 29 07:32:47 2014
New Revision: 63756
URL:
http://svn.reactos.org/svn/reactos?rev=63756&view=rev
Log:
[DSOUND]
- Do not call CoUninitialize if CoInitialize failed.
ROSTESTS-123
Modified:
trunk/reactos/dll/directx/wine/dsound/dsound_main.c
Modified: trunk/reactos/dll/directx/wine/dsound/dsound_main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/wine/dsound/ds…
==============================================================================
--- trunk/reactos/dll/directx/wine/dsound/dsound_main.c [iso-8859-1] (original)
+++ trunk/reactos/dll/directx/wine/dsound/dsound_main.c [iso-8859-1] Tue Jul 29 07:32:47
2014
@@ -150,7 +150,8 @@
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;