dsound: Fix missing unlock on an error path. Found by Smatch.
Michael Stefaniuc
mstefani at redhat.de
Fri Jun 22 16:29:06 CDT 2007
---
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) {
--
1.5.0.6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070622/5f48401b/attachment.pgp
More information about the wine-patches
mailing list