Commit f0d6cba3 authored by Yong Chi's avatar Yong Chi Committed by Alexandre Julliard

ddraw: Fix for incorrect return value from wined3d.

parent 4e67a455
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment