LCL: Fix mem corruption

git-svn-id: trunk@25757 -
This commit is contained in:
martin 2010-05-30 02:56:13 +00:00
parent 89608fa994
commit 0b718f0db3

View File

@ -1457,7 +1457,7 @@ begin
inc(FCount);
ReAllocMem(FItems,FCount*SizeOf(TMethod));
if Index<FCount then
System.Move(FItems[Index],FItems[Index+1],(FCount-Index)*SizeOf(TMethod));
System.Move(FItems[Index],FItems[Index+1],(FCount-Index-1)*SizeOf(TMethod));
FItems[Index]:=AMethod;
end;