Fix bug report 27428

git-svn-id: trunk@29656 -
This commit is contained in:
pierre 2015-02-09 11:15:55 +00:00
parent 7c1cf07484
commit 048ad78079

View File

@ -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)