[PATCH 2/3] d3dx9: Return D3DERR_INVALIDCALL in D3DXLoadSurfaceFromMemory if pDestRect is invalid
Henri Verbeet
hverbeet at gmail.com
Mon Jul 26 08:49:11 CDT 2010
2010/7/25 <tony.wasserka at freenet.de>:
> + if(pDestRect->left > pDestRect->right || pDestRect->top > pDestRect->bottom) return D3DERR_INVALIDCALL;
> + if(pDestRect->left > surfdesc.Width || pDestRect->right > surfdesc.Width) return D3DERR_INVALIDCALL;
If left <= right <= Width, left can never be > Width.
More information about the wine-devel
mailing list