diff --git a/win32ss/gdi/dib/stretchblt.c b/win32ss/gdi/dib/stretchblt.c index 718d8183f7a..696c1aa31b9 100644 --- a/win32ss/gdi/dib/stretchblt.c +++ b/win32ss/gdi/dib/stretchblt.c @@ -174,7 +174,7 @@ BOOLEAN DIB_XXBPP_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf, SURFOBJ *Ma sx = SourceRect->left+(DesX - DestRect->left) * SrcWidth / DstWidth; } if (sx < 0 || sy < 0 || - MaskSurf->sizlBitmap.cx < sx || MaskCy < sy || + MaskSurf->sizlBitmap.cx <= sx || MaskCy <= sy || fnMask_GetPixel(MaskSurf, sx, sy) != 0) { CanDraw = FALSE;