[PATCH] quartz: Missing LeaveCriticalSection on some exit paths (Smatch).
Michael Stefaniuc
mstefani at redhat.de
Wed Jul 9 16:55:36 CDT 2008
---
dlls/quartz/dsoundrender.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/quartz/dsoundrender.c b/dlls/quartz/dsoundrender.c
index 618f073..0633308 100644
--- a/dlls/quartz/dsoundrender.c
+++ b/dlls/quartz/dsoundrender.c
@@ -265,6 +265,7 @@ static HRESULT DSoundRender_Sample(LPVOID iface, IMediaSample * pSample)
if (FAILED(hr))
{
ERR("Cannot get pointer to sample data (%x)\n", hr);
+ LeaveCriticalSection(&This->csFilter);
return hr;
}
@@ -281,6 +282,7 @@ static HRESULT DSoundRender_Sample(LPVOID iface, IMediaSample * pSample)
if (IMediaSample_IsPreroll(pSample) == S_OK)
{
TRACE("Preroll!\n");
+ LeaveCriticalSection(&This->csFilter);
return S_OK;
}
--
1.5.6.2
-------------- 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/20080709/3c59bda0/attachment.pgp
More information about the wine-patches
mailing list