diff --git a/win32ss/gdi/ntgdi/fillshap.c b/win32ss/gdi/ntgdi/fillshap.c index f3663a6eda1..a42a3414234 100644 --- a/win32ss/gdi/ntgdi/fillshap.c +++ b/win32ss/gdi/ntgdi/fillshap.c @@ -945,6 +945,12 @@ GreGradientFill( rclExtent.top += pdc->ptlDCOrig.y; rclExtent.bottom += pdc->ptlDCOrig.y; + if (RECTL_bIsEmptyRect(&rclExtent)) + { + DC_UnlockDc(pdc); + return TRUE; + } + ptlDitherOrg.x = ptlDitherOrg.y = 0; IntLPtoDP(pdc, (LPPOINT)&ptlDitherOrg, 1);