- 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).

svn path=/trunk/; revision=29405
This commit is contained in:
Aleksey Bragin 2007-10-05 20:46:25 +00:00
parent 8d7e49ee86
commit ac92ed539f

View file

@ -669,7 +669,7 @@ static BOOL FASTCALL REGION_CropAndOffsetRegion(const PPOINT off, const PRECT re
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