2
0
Эх сурвалжийг харах

* Fix issue ID #38772

git-svn-id: trunk@49225 -
michael 4 жил өмнө
parent
commit
fe78829b99

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

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