[ros-diffs] [gadamopoulos] 49039: [win32k] - Fix an ancient FIXME in PATH_PathToRegion

gadamopoulos at svn.reactos.org gadamopoulos at svn.reactos.org
Thu Oct 7 19:14:50 UTC 2010


Author: gadamopoulos
Date: Thu Oct  7 19:14:49 2010
New Revision: 49039

URL: http://svn.reactos.org/svn/reactos?rev=49039&view=rev
Log:
[win32k]
- Fix an ancient FIXME in PATH_PathToRegion

Modified:
    trunk/reactos/subsystems/win32/win32k/objects/path.c

Modified: trunk/reactos/subsystems/win32/win32k/objects/path.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/objects/path.c?rev=49039&r1=49038&r2=49039&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/path.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/path.c [iso-8859-1] Thu Oct  7 19:14:49 2010
@@ -1062,14 +1062,17 @@
 
   PATH_FlattenPath ( pPath );
 
-  /* FIXME: What happens when number of points is zero? */
-
   /* First pass: Find out how many strokes there are in the path */
   /* FIXME: We could eliminate this with some bookkeeping in GdiPath */
   numStrokes=0;
   for(i=0; i<pPath->numEntriesUsed; i++)
     if((pPath->pFlags[i] & ~PT_CLOSEFIGURE) == PT_MOVETO)
       numStrokes++;
+
+  if(numStrokes == 0)
+  {
+      return FALSE;
+  }
 
   /* Allocate memory for number-of-points-in-stroke array */
   pNumPointsInStroke = ExAllocatePoolWithTag(PagedPool, sizeof(ULONG) * numStrokes, TAG_PATH);




More information about the Ros-diffs mailing list