mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 08:54:38 +09:00
Fixed memory overlap check.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user