[WIN32K:NTGDI] Fix ASSERTS in REGION_bXformRgn. CORE-15992

This commit is contained in:
Doug Lyons 2019-08-04 18:43:49 -05:00 committed by Thomas Faber
parent eefc544202
commit c1ec0d92e2
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -2084,7 +2084,7 @@ REGION_bXformRgn(
_In_ PMATRIX pmx) _In_ PMATRIX pmx)
{ {
XFORMOBJ xo; XFORMOBJ xo;
ULONG i, j, cjSize; ULONG i, cjSize;
PPOINT ppt; PPOINT ppt;
PULONG pcPoints; PULONG pcPoints;
RECT rect; RECT rect;
@ -2149,11 +2149,8 @@ REGION_bXformRgn(
/* Loop all rects in the region */ /* Loop all rects in the region */
for (i = 0; i < prgn->rdh.nCount - 1; i++) for (i = 0; i < prgn->rdh.nCount - 1; i++)
{ {
for (j = i; i < prgn->rdh.nCount; i++) NT_ASSERT(prgn->Buffer[i].top <= prgn->Buffer[i].bottom);
{ NT_ASSERT(prgn->Buffer[i + 1].top >= prgn->Buffer[i].top);
NT_ASSERT(prgn->Buffer[i].top < prgn->Buffer[i].bottom);
NT_ASSERT(prgn->Buffer[j].top >= prgn->Buffer[i].top);
}
} }
return TRUE; return TRUE;