Commit cbe749f1 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Fixed two asserts in Blt().

parent 67263a3e
...@@ -226,8 +226,8 @@ HRESULT WINAPI IDirectDrawSurface4Impl_Blt( ...@@ -226,8 +226,8 @@ HRESULT WINAPI IDirectDrawSurface4Impl_Blt(
memset(&xsrc,0,sizeof(xsrc)); memset(&xsrc,0,sizeof(xsrc));
} }
} }
if (src) assert(xsrc.bottom <= sdesc.dwHeight); if (src) assert((xsrc.bottom-xsrc.top) <= sdesc.dwHeight);
assert(xdst.bottom <= ddesc.dwHeight); assert((xdst.bottom-xdst.top) <= ddesc.dwHeight);
bpp = GET_BPP(ddesc); bpp = GET_BPP(ddesc);
srcheight = xsrc.bottom - xsrc.top; srcheight = xsrc.bottom - xsrc.top;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment