From 98e30069033e13b94311f9537fc52f1673284650 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Mon, 25 Jun 2007 23:58:12 +0200 Subject: [PATCH] winejack.drv: Fix missing unlock. Found by Smatch. --- dlls/winejack.drv/audio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/winejack.drv/audio.c b/dlls/winejack.drv/audio.c index 7cba9a5e2c1..ae5d09c9515 100644 --- a/dlls/winejack.drv/audio.c +++ b/dlls/winejack.drv/audio.c @@ -1805,7 +1805,8 @@ int JACK_callback_wwi (nframes_t nframes, void *arg) #if JACK_CLOSE_HACK if(wwi->in_use == FALSE) { - /* do nothing if nothing is being recorded */ + /* do nothing if nothing is being recorded */ + LeaveCriticalSection(&wwi->access_crst); return 0; } #endif