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/ob…
==============================================================================
--- 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