mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 18:19:08 +02:00
synedit: fixed CompareBinary for Length(s2) > l
git-svn-id: branches/fixes_2_0@60379 -
This commit is contained in:
parent
511744bfa6
commit
aa6c8ecdfc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user