diff --git a/libfreerdp/gdi/region.c b/libfreerdp/gdi/region.c index 888a8483f..a749320ad 100644 --- a/libfreerdp/gdi/region.c +++ b/libfreerdp/gdi/region.c @@ -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; } /**