mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-25 13:59:12 +02:00
lcl: skip directories from GetTempFileName (from v-t-l)
git-svn-id: trunk@15540 -
This commit is contained in:
parent
067fa7a973
commit
2bdf444a61
@ -1115,7 +1115,7 @@ begin
|
||||
i:=1;
|
||||
repeat
|
||||
Result:=CurPath+IntToStr(i)+'.tmp';
|
||||
if not FileExists(Result) then exit;
|
||||
if not (FileExists(Result) or DirectoryExists(Result)) then exit;
|
||||
inc(i);
|
||||
until false;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user