mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +00:00
ddraw: Fix missing unlock on an error path. Found by Smatch.
This commit is contained in:
parent
3f5fc520b5
commit
d6c2e6f067
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user