synedit: fixed CompareBinary for Length(s2) > l

git-svn-id: trunk@60333 -
This commit is contained in:
mattias 2019-02-04 14:54:22 +00:00
parent a68d2b603f
commit ae434164b9

View File

@ -801,7 +801,7 @@ begin
end else begin
if l > 0 then
Result := CompareByte(s1[1], s2[1], l);
if Result = 0 then
if (Result = 0) and (Length(s2) > l) then
Result := -1;
end;
end;