Add DosExitCode to DosError shl 16 to set ExitCode value in utils/dosbox/exitcode.pas program

This commit is contained in:
Pierre Muller 2024-01-31 12:02:52 +01:00
parent dd6efefdbf
commit 7b492b9975

View File

@ -23,7 +23,7 @@ begin
SwapVectors;
if DosError <> 0 then
ExitCode := DosError shl 16
ExitCode := DosError shl 16 + DosExitCode
else
ExitCode := DosExitCode;