Browse Source

Avoid program RTE if failing to remove temporary directory

git-svn-id: trunk@38816 -
pierre 7 năm trước cách đây
mục cha
commit
ee1a5843aa
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      tests/utils/dosbox/dosbox_wrapper.pas

+ 2 - 1
tests/utils/dosbox/dosbox_wrapper.pas

@@ -397,7 +397,8 @@ begin
     end;
   TmpFileList.Free;
   ChDir(StartDir);
-  RmDir(ADosBoxDir);
+  if not RemoveDir(ADosBoxDir) then
+    writeln('Failed to remove dir ',ADosBoxDir);
 end;