Browse Source

Fix bug report 27428

git-svn-id: trunk@29656 -
pierre 10 years ago
parent
commit
048ad78079
1 changed files with 3 additions and 1 deletions
  1. 3 1
      packages/rtl-objpas/src/inc/variants.pp

+ 3 - 1
packages/rtl-objpas/src/inc/variants.pp

@@ -2264,7 +2264,9 @@ 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) in [varString,varOleStr]) then
+    else if (vType and varByRef <> 0) and
+             (((vType xor varByRef) = varString)
+               or ((vType xor varByRef)= varOleStr)) then
       Dest := Source
     else if FindCustomVariantType(vType, Handler) then
       Handler.Copy(Dest, Source, False)