Henri Verbeet : ddraw: Remove rectangle validation from ddraw_surface7_BltFast().

Alexandre Julliard julliard at winehq.org
Fri Aug 5 10:20:48 CDT 2011


Module: wine
Branch: master
Commit: 831801dd60ffee59f9f3c7532d0a3e18a5a3ef96
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=831801dd60ffee59f9f3c7532d0a3e18a5a3ef96

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Thu Aug  4 19:53:28 2011 +0200

ddraw: Remove rectangle validation from ddraw_surface7_BltFast().

This is already done by wined3d_surface_blt().

---

 dlls/ddraw/surface.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/dlls/ddraw/surface.c b/dlls/ddraw/surface.c
index b51c360..2b06cb9 100644
--- a/dlls/ddraw/surface.c
+++ b/dlls/ddraw/surface.c
@@ -3622,14 +3622,6 @@ static HRESULT WINAPI ddraw_surface7_BltFast(IDirectDrawSurface7 *iface, DWORD d
      */
     if(rsrc)
     {
-        if(rsrc->top > rsrc->bottom || rsrc->left > rsrc->right ||
-           rsrc->right > src->surface_desc.dwWidth ||
-           rsrc->bottom > src->surface_desc.dwHeight)
-        {
-            WARN("Source rectangle is invalid, returning DDERR_INVALIDRECT\n");
-            return DDERR_INVALIDRECT;
-        }
-
         src_w = rsrc->right - rsrc->left;
         src_h = rsrc->bottom - rsrc->top;
     }




More information about the wine-cvs mailing list