ddraw: Fix for incorrect return value from wined3d.

This commit is contained in:
Yong Chi 2006-08-06 13:05:02 -07:00 committed by Alexandre Julliard
parent 4e67a4558c
commit f0d6cba3a5

View File

@ -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 */