Module: wine Branch: master Commit: 2323e79e369af17cc456cf5f9c46fce957574146 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2323e79e369af17cc456cf5f9c...
Author: Michael Stefaniuc mstefani@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) {