mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 01:42:30 +00:00
[WIN32K:NTGDI] Fix ASSERTS in REGION_bXformRgn. CORE-15992
This commit is contained in:
parent
eefc544202
commit
c1ec0d92e2
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue