Add missing LeaveCriticalSection's in error path.

oldstable
Michael Stefaniuc 2003-02-24 20:39:22 +00:00 committed by Alexandre Julliard
parent 9a1b221e80
commit f85440466b
1 changed files with 2 additions and 0 deletions

View File

@ -884,6 +884,7 @@ IDirectSoundCaptureBufferImpl_Start(
err = mmErr(waveInClose(ipDSC->hwi));
if (err != DS_OK) {
TRACE("waveInClose failed\n");
LeaveCriticalSection(&(This->lock));
return DSERR_GENERIC;
}
@ -893,6 +894,7 @@ IDirectSoundCaptureBufferImpl_Start(
CALLBACK_FUNCTION | WAVE_DIRECTSOUND));
if (err != DS_OK) {
TRACE("waveInOpen failed\n");
LeaveCriticalSection(&(This->lock));
return DSERR_GENERIC;
}