handle the cases where f contains an absolute path

git-svn-id: trunk@24726 -
This commit is contained in:
Károly Balogh 2013-06-01 15:22:58 +00:00
parent e7094cf1d6
commit 36bf03372b

View File

@ -1203,6 +1203,14 @@ end;
StartPos, EndPos, L: LongInt;
begin
Result:=False;
if (path_absolute(f)) then
begin
Result:=FileExistsNonCase('',f, allowcache, foundfile);
if Result then
Exit;
end;
StartPos := 1;
L := Length(Path);
repeat