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/obj... ============================================================================== --- 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;