From 02db01f3a6ec05069f78437b0c2d8d6c57763be8 Mon Sep 17 00:00:00 2001 From: jimtabor Date: Mon, 29 Jul 2019 13:02:07 -0500 Subject: [PATCH] [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);