Index: subsystems/win32/win32k/dib/floodfill.c =================================================================== --- subsystems/win32/win32k/dib/floodfill.c (revision 53916) +++ subsystems/win32/win32k/dib/floodfill.c (working copy) @@ -59,8 +59,7 @@ ULONG Color, BOOL isSurf) { - if (x >= DstRect->left && x <= DstRect->right && - y >= DstRect->top && y <= DstRect->bottom) + if (RECTL_bPointInRect(DstRect,x,y)) { if (isSurf == TRUE && DibFunctionsForBitmapFormat[DstSurf->iBitmapFormat].DIB_GetPixel(DstSurf, x, y) != Color) Index: subsystems/win32/win32k/include/rect.h =================================================================== --- subsystems/win32/win32k/include/rect.h (revision 53916) +++ subsystems/win32/win32k/include/rect.h (working copy) @@ -41,8 +41,8 @@ FORCEINLINE RECTL_bPointInRect(const RECTL *prcl, INT x, INT y) { - return (x >= prcl->left && x <= prcl->right && - y >= prcl->top && y <= prcl->bottom); + return (x >= prcl->left && x < prcl->right && + y >= prcl->top && y < prcl->bottom); } BOOL