mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-05 08:29:45 +01:00
handle the cases where f contains an absolute path
git-svn-id: trunk@24726 -
This commit is contained in:
parent
e7094cf1d6
commit
36bf03372b
@ -1203,6 +1203,14 @@ end;
|
|||||||
StartPos, EndPos, L: LongInt;
|
StartPos, EndPos, L: LongInt;
|
||||||
begin
|
begin
|
||||||
Result:=False;
|
Result:=False;
|
||||||
|
|
||||||
|
if (path_absolute(f)) then
|
||||||
|
begin
|
||||||
|
Result:=FileExistsNonCase('',f, allowcache, foundfile);
|
||||||
|
if Result then
|
||||||
|
Exit;
|
||||||
|
end;
|
||||||
|
|
||||||
StartPos := 1;
|
StartPos := 1;
|
||||||
L := Length(Path);
|
L := Length(Path);
|
||||||
repeat
|
repeat
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user