diff --git a/win32ss/gdi/ntgdi/region.c b/win32ss/gdi/ntgdi/region.c index 1456602852..9407858908 100644 --- a/win32ss/gdi/ntgdi/region.c +++ b/win32ss/gdi/ntgdi/region.c @@ -2149,9 +2149,9 @@ REGION_bXformRgn( /* Loop all rects in the region */ for (i = 0; i < prgn->rdh.nCount - 1; i++) { - for (j = i; i < prgn->rdh.nCount; i++) + for (j = i; j < prgn->rdh.nCount; j++) { - NT_ASSERT(prgn->Buffer[i].top < prgn->Buffer[i].bottom); + NT_ASSERT(prgn->Buffer[i].top <= prgn->Buffer[i].bottom); NT_ASSERT(prgn->Buffer[j].top >= prgn->Buffer[i].top); } }