mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 19:19:19 +02:00
IDE: fixed PathIsInPath for /a and /a/
git-svn-id: trunk@61636 -
This commit is contained in:
parent
05e011f162
commit
5c4c1e1f96
@ -755,7 +755,7 @@ var
|
||||
l: integer;
|
||||
begin
|
||||
if Path='' then exit(false);
|
||||
ExpPath:=ResolveDots(Path);
|
||||
ExpPath:=AppendPathDelim(ResolveDots(Path));
|
||||
ExpDir:=AppendPathDelim(ResolveDots(Directory));
|
||||
l:=length(ExpDir);
|
||||
Result:=(l>0) and (length(ExpPath)>=l) and (ExpPath[l]=PathDelim)
|
||||
|
Loading…
Reference in New Issue
Block a user