Pārlūkot izejas kodu

* Merging revisions r49225 from trunk:
------------------------------------------------------------------------
r49225 | michael | 2021-04-18 12:45:47 +0200 (Sun, 18 Apr 2021) | 1 line

* Fix issue ID #38772
------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@49301 -

michael 4 gadi atpakaļ
vecāks
revīzija
619c520fd6
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      rtl/objpas/sysutils/osutil.inc

+ 1 - 1
rtl/objpas/sysutils/osutil.inc

@@ -245,7 +245,7 @@ begin
     Repeat
     Repeat
       Result:=Format('%s%.5d.tmp',[Start,I]);
       Result:=Format('%s%.5d.tmp',[Start,I]);
       Inc(I);
       Inc(I);
-    Until not FileExists(Result);
+    Until not (FileExists(Result) or DirectoryExists(Result));
     end;
     end;
 end;
 end;
 {$endif}
 {$endif}