* fixed range error introduced in r13213

git-svn-id: trunk@13328 -
This commit is contained in:
Jonas Maebe 2009-06-27 11:20:30 +00:00
parent fc5e5d9258
commit 9c280eae26

View File

@ -3770,7 +3770,9 @@ end;
function TCustomVariantType.VarDataIsStr(const V: TVarData): Boolean;
begin
Result:=(V.vType and varTypeMask) in [varOleStr,varString];
Result:=
((V.vType and varTypeMask) = varOleStr) or
((V.vType and varTypeMask) = varString);
end;