From f85440466bc2d342c14d4ad0e77f8dc5fc656256 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Mon, 24 Feb 2003 20:39:22 +0000 Subject: [PATCH] Add missing LeaveCriticalSection's in error path. --- dlls/dsound/capture.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/dsound/capture.c b/dlls/dsound/capture.c index 9e4cb1a29fd..7d4aebbc4c2 100644 --- a/dlls/dsound/capture.c +++ b/dlls/dsound/capture.c @@ -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; }