mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
[NTVDM]
Save the error code returned by applications. svn path=/branches/ntvdm/; revision=60789
This commit is contained in:
parent
97acc35c7c
commit
1c1febed17
1 changed files with 4 additions and 0 deletions
|
@ -28,6 +28,7 @@ static HANDLE DosSystemFileTable[DOS_SFT_SIZE];
|
|||
static WORD DosSftRefCount[DOS_SFT_SIZE];
|
||||
static BYTE DosAllocStrategy = DOS_ALLOC_BEST_FIT;
|
||||
static BOOLEAN DosUmbLinked = FALSE;
|
||||
static BYTE DosErrorLevel = 0;
|
||||
|
||||
/* PRIVATE FUNCTIONS **********************************************************/
|
||||
|
||||
|
@ -1259,6 +1260,9 @@ Done:
|
|||
if (CurrentPsp == SYSTEM_PSP) VdmRunning = FALSE;
|
||||
}
|
||||
|
||||
/* Save the return code */
|
||||
DosErrorLevel = ReturnCode;
|
||||
|
||||
/* Return control to the parent process */
|
||||
EmulatorExecute(HIWORD(PspBlock->TerminateAddress),
|
||||
LOWORD(PspBlock->TerminateAddress));
|
||||
|
|
Loading…
Reference in a new issue