mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-28 06:59:13 +02:00
rtl: DoVarCopyComplex should copy variant strings by ref (reason: this is delphi compatible behavior)
git-svn-id: trunk@14325 -
This commit is contained in:
parent
9243d89025
commit
4e29be8a36
@ -2197,6 +2197,8 @@ begin
|
|||||||
RefAnyProc(Dest);
|
RefAnyProc(Dest);
|
||||||
end else if vType and varArray <> 0 then
|
end else if vType and varArray <> 0 then
|
||||||
DoVarCopyArray(Dest, Source, @DoVarCopy)
|
DoVarCopyArray(Dest, Source, @DoVarCopy)
|
||||||
|
else if (vType and varByRef <> 0) and (vType xor varByRef = varString) then
|
||||||
|
Dest := Source
|
||||||
else if FindCustomVariantType(vType, Handler) then
|
else if FindCustomVariantType(vType, Handler) then
|
||||||
Handler.Copy(Dest, Source, False)
|
Handler.Copy(Dest, Source, False)
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user