mirror of
https://github.com/reactos/reactos.git
synced 2024-10-07 09:54:40 +00:00
- 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:
parent
8d7e49ee86
commit
ac92ed539f
|
@ -669,7 +669,7 @@ static BOOL FASTCALL REGION_CropAndOffsetRegion(const PPOINT off, const PRECT re
|
||||||
else
|
else
|
||||||
break;
|
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)
|
if(((PRECT)rgnDst->Buffer + i)->bottom > right)
|
||||||
((PRECT)rgnDst->Buffer + i)->bottom = right;
|
((PRECT)rgnDst->Buffer + i)->bottom = right;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue