Explorar el Código

Avoid program RTE if failing to remove temporary directory

git-svn-id: trunk@38816 -
pierre hace 7 años
padre
commit
ee1a5843aa
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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;