Author: khornicek
Date: Wed Feb 22 10:48:41 2017
New Revision: 73881
URL:
http://svn.reactos.org/svn/reactos?rev=73881&view=rev
Log:
[NTGDI]
- Check for zero rectangles in REGION_bXformRgn.
CORE-12204
Modified:
trunk/reactos/win32ss/gdi/ntgdi/region.c
Modified: trunk/reactos/win32ss/gdi/ntgdi/region.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/region.c…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/region.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/region.c [iso-8859-1] Wed Feb 22 10:48:41 2017
@@ -2051,6 +2051,10 @@
RECT rect;
BOOL bResult;
+ /* Check for zero rectangles and return TRUE for translation only matrices */
+ if (prgn->rdh.nCount < 1)
+ return pmx->flAccel & XFORM_UNITY;
+
/* Check if this is a scaling only matrix (off-diagonal elements are 0 */
if (pmx->flAccel & XFORM_SCALE)
{