Sfoglia il codice sorgente

Avoid program RTE if failing to remove temporary directory

git-svn-id: trunk@38816 -
pierre 7 anni fa
parent
commit
ee1a5843aa
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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;