ddraw createVertex return code fix 2

Yong Chi yong28chi at yahoo.com
Fri Aug 11 14:55:42 CDT 2006


translate out of video mem to too many vertices error
code.  This is verfied by test case submitted earlier.

Thanks to whoever compiled crosstest for me and Marcus
to help me fish out the return code.

__________________________________________________
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.9
diff -u -r1.9 direct3d.c
--- dlls/ddraw/direct3d.c	9 Aug 2006 11:04:37 -0000	1.9
+++ dlls/ddraw/direct3d.c	11 Aug 2006 19:48:50 -0000
@@ -994,6 +994,8 @@
         HeapFree(GetProcessHeap(), 0, object);
         if (hr == WINED3DERR_INVALIDCALL)
             return DDERR_INVALIDPARAMS;
+	if (hr == WINED3DERR_OUTOFVIDEOMEMORY)
+	    return D3DERR_TOOMANYVERTICES;
         else
             return hr;
     }


More information about the wine-patches mailing list