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

Michael Stefaniuc mstefani at redhat.de
Mon Jun 25 16:58:03 CDT 2007


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

diff --git a/dlls/ddraw/vertexbuffer.c b/dlls/ddraw/vertexbuffer.c
index 10b5fa4..209411b 100644
--- a/dlls/ddraw/vertexbuffer.c
+++ b/dlls/ddraw/vertexbuffer.c
@@ -250,6 +250,7 @@ IDirect3DVertexBufferImpl_Lock(IDirect3DVertexBuffer7 *iface,
         if(hr != D3D_OK)
         {
             ERR("(%p) IWineD3DVertexBuffer::GetDesc failed with hr=%08x\n", This, hr);
+            LeaveCriticalSection(&ddraw_cs);
             return hr;
         }
         *Size = Desc.Size;
-- 
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/20070625/bf7705f5/attachment.pgp


More information about the wine-patches mailing list