mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 03:21:44 +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;
|
l: integer;
|
||||||
begin
|
begin
|
||||||
if Path='' then exit(false);
|
if Path='' then exit(false);
|
||||||
ExpPath:=ResolveDots(Path);
|
ExpPath:=AppendPathDelim(ResolveDots(Path));
|
||||||
ExpDir:=AppendPathDelim(ResolveDots(Directory));
|
ExpDir:=AppendPathDelim(ResolveDots(Directory));
|
||||||
l:=length(ExpDir);
|
l:=length(ExpDir);
|
||||||
Result:=(l>0) and (length(ExpPath)>=l) and (ExpPath[l]=PathDelim)
|
Result:=(l>0) and (length(ExpPath)>=l) and (ExpPath[l]=PathDelim)
|
||||||
|
Loading…
Reference in New Issue
Block a user