Michael Stefaniuc : ddraw: Fix missing unlock on an error path.
Found by Smatch.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Jun 26 07:11:57 CDT 2007
Module: wine
Branch: master
Commit: d6c2e6f067d137fe0f59bd55b647d9677c5cb8b8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d6c2e6f067d137fe0f59bd55b647d9677c5cb8b8
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Mon Jun 25 23:58:03 2007 +0200
ddraw: Fix missing unlock on an error path. Found by Smatch.
---
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;
More information about the wine-cvs
mailing list