Module: wine Branch: refs/heads/master Commit: f0d6cba3a5ac87ed9dab23cd13045e860f2553ce URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=f0d6cba3a5ac87ed9dab23cd...
Author: Yong Chi yong28chi@yahoo.com Date: Sun Aug 6 13:05:02 2006 -0700
ddraw: Fix for incorrect return value from wined3d.
---
dlls/ddraw/direct3d.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/ddraw/direct3d.c b/dlls/ddraw/direct3d.c index 832786f..fe56729 100644 --- a/dlls/ddraw/direct3d.c +++ b/dlls/ddraw/direct3d.c @@ -992,7 +992,10 @@ IDirect3DImpl_7_CreateVertexBuffer(IDire { 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 */