mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 18:09:27 +02:00
Fix ExitCode readout if temp directory is used by postponing temp directory cleanup
git-svn-id: trunk@36313 -
This commit is contained in:
parent
dd01b7ca8b
commit
87bb473780
@ -347,8 +347,6 @@ begin
|
||||
ExecuteDosBox(DosBoxBinaryPath, DosBoxDir);
|
||||
finally
|
||||
ExitProc;
|
||||
if use_temp_dir then
|
||||
Cleanup(DosBoxDir);
|
||||
end;
|
||||
{$ifdef UseSignals}
|
||||
if SignalCalled then
|
||||
@ -358,5 +356,7 @@ begin
|
||||
{$endif def UseSignals}
|
||||
ExitProc;
|
||||
ExitCode:=ReadExitCode(DosBoxDir);
|
||||
if use_temp_dir then
|
||||
Cleanup(DosBoxDir);
|
||||
halt(ExitCode);
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user