Fixed memory overlap check.

This commit is contained in:
Armin Novak
2016-01-18 09:32:34 +01:00
parent 123cd523e0
commit 93f3c060d2

View File

@@ -234,8 +234,8 @@ INLINE BOOL gdi_CopyOverlap(int x, int y, int width, int height, int srcx, int s
gdi_CRgnToRect(x, y, width, height, &dst);
gdi_CRgnToRect(srcx, srcy, width, height, &src);
return (dst.right > src.left && dst.left < src.right &&
dst.bottom > src.top && dst.top < src.bottom) ? TRUE : FALSE;
return (dst.right >= src.left && dst.left <= src.right &&
dst.bottom >= src.top && dst.top <= src.bottom) ? TRUE : FALSE;
}
/**