diff --git a/dlls/dsound/capture.c b/dlls/dsound/capture.c index 77ce7b62641..92dc24f9e6a 100644 --- a/dlls/dsound/capture.c +++ b/dlls/dsound/capture.c @@ -1036,6 +1036,7 @@ static HRESULT DirectSoundCaptureDevice_Initialize( if(FAILED(hr)){ DeleteCriticalSection(&device->lock); HeapFree(GetProcessHeap(), 0, device); + LeaveCriticalSection(&DSOUND_capturers_lock); return DSERR_NODRIVER; }