ddraw fix for incorrect return value from wined3d

Yong Chi yong28chi at yahoo.com
Sun Aug 6 15:05:02 CDT 2006


This correctly translates Dx9 value into DX7 for
CreateVertex case.  This prevents crash for Anarchy
Online when loading/changing into new area.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
Index: dlls/ddraw/direct3d.c
===================================================================
RCS file: /home/wine/wine/dlls/ddraw/direct3d.c,v
retrieving revision 1.7
diff -u -r1.7 direct3d.c
--- dlls/ddraw/direct3d.c	31 Jul 2006 09:32:59 -0000	1.7
+++ dlls/ddraw/direct3d.c	6 Aug 2006 19:58:35 -0000
@@ -992,7 +992,10 @@
     {
         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 */


More information about the wine-patches mailing list