mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-09 23:35:57 +02:00
LCL: Fix mem corruption
git-svn-id: trunk@25757 -
This commit is contained in:
parent
89608fa994
commit
0b718f0db3
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user