Michael Stefaniuc : winealsa.drv: Fix missing unlock on the error
path. Found by Smatch.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jun 25 07:28:09 CDT 2007
Module: wine
Branch: master
Commit: 399a297b1969998704b86264cbb53ca34dbf5bd9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=399a297b1969998704b86264cbb53ca34dbf5bd9
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Fri Jun 22 23:30:57 2007 +0200
winealsa.drv: Fix missing unlock on the error path. Found by Smatch.
---
dlls/winealsa.drv/dsoutput.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/winealsa.drv/dsoutput.c b/dlls/winealsa.drv/dsoutput.c
index 57b8968..9fc5020 100644
--- a/dlls/winealsa.drv/dsoutput.c
+++ b/dlls/winealsa.drv/dsoutput.c
@@ -459,6 +459,7 @@ static HRESULT WINAPI IDsDriverBufferImpl_GetPosition(PIDSDRIVERBUFFER iface,
if (!This->pcm)
{
FIXME("Bad pointer for pcm: %p\n", This->pcm);
+ LeaveCriticalSection(&This->pcm_crst);
return DSERR_GENERIC;
}
More information about the wine-cvs
mailing list