Michael Stefaniuc : dsound: Fix missing unlock on an error path. Found by Smatch.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jun 25 07:28:08 CDT 2007


Module: wine
Branch: master
Commit: 2323e79e369af17cc456cf5f9c46fce957574146
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2323e79e369af17cc456cf5f9c46fce957574146

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Fri Jun 22 23:29:06 2007 +0200

dsound: Fix missing unlock on an error path. Found by Smatch.

---

 dlls/dsound/primary.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/dsound/primary.c b/dlls/dsound/primary.c
index c3c0424..0068e5a 100644
--- a/dlls/dsound/primary.c
+++ b/dlls/dsound/primary.c
@@ -639,6 +639,7 @@ static HRESULT WINAPI PrimaryBufferImpl_GetCurrentPosition(
 	hres = DSOUND_PrimaryGetPosition(device, playpos, writepos);
 	if (hres != DS_OK) {
 		WARN("DSOUND_PrimaryGetPosition failed\n");
+		LeaveCriticalSection(&(device->mixlock));
 		return hres;
 	}
 	if (writepos) {




More information about the wine-cvs mailing list