ddraw: Fix for incorrect return value from wined3d.
This commit is contained in:
parent
4e67a4558c
commit
f0d6cba3a5
|
@ -992,7 +992,10 @@ IDirect3DImpl_7_CreateVertexBuffer(IDirect3D7 *iface,
|
|||
{
|
||||
ERR("(%p) IWineD3DDevice::CreateVertexBuffer failed with hr=%08lx\n", This, hr);
|
||||
HeapFree(GetProcessHeap(), 0, object);
|
||||
return hr;
|
||||
if (hr == WINED3DERR_INVALIDCALL)
|
||||
return DDERR_INVALIDPARAMS;
|
||||
else
|
||||
return hr;
|
||||
}
|
||||
|
||||
/* Return the interface */
|
||||
|
|
Loading…
Reference in New Issue