Explorar o código

rtl: DoVarCopyComplex should copy variant strings by ref (reason: this is delphi compatible behavior)

git-svn-id: trunk@14325 -
paul %!s(int64=16) %!d(string=hai) anos
pai
achega
4e29be8a36
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      rtl/inc/variants.pp

+ 2 - 0
rtl/inc/variants.pp

@@ -2197,6 +2197,8 @@ begin
       RefAnyProc(Dest);
     end else if vType and varArray <> 0 then
       DoVarCopyArray(Dest, Source, @DoVarCopy)
+    else if (vType and varByRef <> 0) and (vType xor varByRef = varString) then
+      Dest := Source
     else if FindCustomVariantType(vType, Handler) then
       Handler.Copy(Dest, Source, False)
     else