https://git.reactos.org/?p=reactos.git;a=commitdiff;h=02db01f3a6ec05069f784…
commit 02db01f3a6ec05069f78437b0c2d8d6c57763be8
Author: jimtabor <james.tabor(a)reactos.org>
AuthorDate: Mon Jul 29 13:02:07 2019 -0500
Commit: jimtabor <james.tabor(a)reactos.org>
CommitDate: Mon Jul 29 13:02:07 2019 -0500
[NtGDI] Fix one size region test.
See CORE-16246, the clip region may be the same size but more complex
than the callers simple region.
---
win32ss/gdi/ntgdi/cliprgn.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/win32ss/gdi/ntgdi/cliprgn.c b/win32ss/gdi/ntgdi/cliprgn.c
index 566ce3fa4be..23f32426fe5 100644
--- a/win32ss/gdi/ntgdi/cliprgn.c
+++ b/win32ss/gdi/ntgdi/cliprgn.c
@@ -31,7 +31,7 @@ IntGdiReleaseVisRgn(PDC pDC)
}
//
-// Updating Vis Region Attribute the for DC Attributes.
+// Updating Vis Region Attribute for DC Attributes.
// BTW: This system region has an user attribute for it.
//
VOID
@@ -239,8 +239,8 @@ IntGdiExtSelectClipRect(
}
}
else // Have a box to build a region with.
- {
- if (dc->dclevel.prgnClip)
+ { // See CORE-16246 : Needs to be a one box Clip Region.
+ if ( dc->dclevel.prgnClip && (REGION_Complexity(dc->dclevel.prgnClip) == SIMPLEREGION) )
{
REGION_GetRgnBox(dc->dclevel.prgnClip, &rect);