mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-21 08:30:24 +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);
|
ExecuteDosBox(DosBoxBinaryPath, DosBoxDir);
|
||||||
finally
|
finally
|
||||||
ExitProc;
|
ExitProc;
|
||||||
if use_temp_dir then
|
|
||||||
Cleanup(DosBoxDir);
|
|
||||||
end;
|
end;
|
||||||
{$ifdef UseSignals}
|
{$ifdef UseSignals}
|
||||||
if SignalCalled then
|
if SignalCalled then
|
||||||
@ -358,5 +356,7 @@ begin
|
|||||||
{$endif def UseSignals}
|
{$endif def UseSignals}
|
||||||
ExitProc;
|
ExitProc;
|
||||||
ExitCode:=ReadExitCode(DosBoxDir);
|
ExitCode:=ReadExitCode(DosBoxDir);
|
||||||
|
if use_temp_dir then
|
||||||
|
Cleanup(DosBoxDir);
|
||||||
halt(ExitCode);
|
halt(ExitCode);
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user