Commit f8544046 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

Add missing LeaveCriticalSection's in error path.

parent 9a1b221e
...@@ -884,6 +884,7 @@ IDirectSoundCaptureBufferImpl_Start( ...@@ -884,6 +884,7 @@ IDirectSoundCaptureBufferImpl_Start(
err = mmErr(waveInClose(ipDSC->hwi)); err = mmErr(waveInClose(ipDSC->hwi));
if (err != DS_OK) { if (err != DS_OK) {
TRACE("waveInClose failed\n"); TRACE("waveInClose failed\n");
LeaveCriticalSection(&(This->lock));
return DSERR_GENERIC; return DSERR_GENERIC;
} }
...@@ -893,6 +894,7 @@ IDirectSoundCaptureBufferImpl_Start( ...@@ -893,6 +894,7 @@ IDirectSoundCaptureBufferImpl_Start(
CALLBACK_FUNCTION | WAVE_DIRECTSOUND)); CALLBACK_FUNCTION | WAVE_DIRECTSOUND));
if (err != DS_OK) { if (err != DS_OK) {
TRACE("waveInOpen failed\n"); TRACE("waveInOpen failed\n");
LeaveCriticalSection(&(This->lock));
return DSERR_GENERIC; return DSERR_GENERIC;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment