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

This commit is contained in:
Michael Stefaniuc 2007-06-25 23:58:03 +02:00 committed by Alexandre Julliard
parent 3f5fc520b5
commit d6c2e6f067

View File

@ -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;