[ros-diffs] [fireball] 29405: - Fix an awful memory-overwrite bug. Buggy code written by Eugene Ingerman, 04-Aug-1988. - Alex is awarded ReactOS Medal-of-Honour for the great achievement (fix of the oldest bug ever in ReactOS).

fireball at svn.reactos.org fireball at svn.reactos.org
Fri Oct 5 22:46:25 CEST 2007


Author: fireball
Date: Sat Oct  6 00:46:25 2007
New Revision: 29405

URL: http://svn.reactos.org/svn/reactos?rev=29405&view=rev
Log:
- Fix an awful memory-overwrite bug. Buggy code written by Eugene Ingerman, 04-Aug-1988.
- Alex is awarded ReactOS Medal-of-Honour for the great achievement (fix of the oldest bug ever in ReactOS).

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

Modified: trunk/reactos/subsystems/win32/win32k/objects/region.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/objects/region.c?rev=29405&r1=29404&r2=29405&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/region.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/region.c Sat Oct  6 00:46:25 2007
@@ -669,7 +669,7 @@
       else
         break;
 
-    for(i = j; i >= 0; i--) // fixup bottom band
+    for(i = j; i > 0; i--) // fixup bottom band
       if(((PRECT)rgnDst->Buffer + i)->bottom > right)
         ((PRECT)rgnDst->Buffer + i)->bottom = right;
       else




More information about the Ros-diffs mailing list