mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 04:59:26 +02:00
* fixed copying of remaining elements
git-svn-id: trunk@7699 -
This commit is contained in:
parent
3eaceafad3
commit
ea97b8b137
@ -148,7 +148,7 @@ begin
|
||||
case PByte(TypeInfo)^ of
|
||||
tkAstring :
|
||||
begin
|
||||
fpc_AnsiStr_Decr_Ref(PPointer(Data)^);
|
||||
fpc_AnsiStr_Decr_Ref(PPointer(Data)^);
|
||||
PPointer(Data)^:=nil;
|
||||
end;
|
||||
tkWstring :
|
||||
@ -299,6 +299,9 @@ begin
|
||||
copiedsize:=fpc_Copy_internal(Src+Offset,Dest+Offset,Info);
|
||||
expectedoffset:=Offset+copiedsize;
|
||||
end;
|
||||
{ elements remaining? }
|
||||
if result>expectedoffset then
|
||||
move((Src+expectedoffset)^,(Dest+expectedoffset)^,Result-expectedoffset);
|
||||
end;
|
||||
tkDynArray:
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user