ddraw fix for incorrect return value from wined3d

Yong Chi yong28chi at yahoo.com
Mon Aug 7 16:55:15 CDT 2006


this fixes the unexpected value from returning for
DX7. The fix prevents crashes in Anarchy Online when
changing into an area(zoning).

__________________________________________________
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