Add missing LeaveCriticalSection's in error path.
This commit is contained in:
parent
9a1b221e80
commit
f85440466b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue