mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 00:40:26 +08:00
[WIN32K] Check for empty output rect in GreGradientFill
Fixes a failed ASSERT. CORE-14148 #resolve
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user