[ros-diffs] [khornicek] 56007: [WIN32K] Take the "unsignedness" of the index into account.

khornicek at svn.reactos.org khornicek at svn.reactos.org
Sun Mar 4 19:20:25 UTC 2012


Author: khornicek
Date: Sun Mar  4 19:20:25 2012
New Revision: 56007

URL: http://svn.reactos.org/svn/reactos?rev=56007&view=rev
Log:
[WIN32K]
Take the "unsignedness" of the index into account.

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=56007&r1=56006&r2=56007&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] Sun Mar  4 19:20:25 2012
@@ -760,8 +760,11 @@
   lastmove.x = orig_pos.x = pdcattr->ptlCurrent.x;
   lastmove.y = orig_pos.y = pdcattr->ptlCurrent.y;
 
-  for (i = pPath->numEntriesUsed - 1; i >= 0; i--)
-  {
+  i = pPath->numEntriesUsed;
+
+  while (i != 0)
+  {
+      i--;
       if (pPath->pFlags[i] == PT_MOVETO)
       {
          lastmove.x = pPath->pPoints[i].x;




More information about the Ros-diffs mailing list