瀏覽代碼

* Fix issue ID #38772

git-svn-id: trunk@49225 -
michael 4 年之前
父節點
當前提交
fe78829b99
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rtl/objpas/sysutils/osutil.inc

+ 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}