IDE: fixed PathIsInPath for /a and /a/

git-svn-id: trunk@61636 -
This commit is contained in:
mattias 2019-07-28 08:19:04 +00:00
parent 05e011f162
commit 5c4c1e1f96

View File

@ -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)