Author: aandrejevic Date: Tue Oct 29 00:10:14 2013 New Revision: 60789
URL: http://svn.reactos.org/svn/reactos?rev=60789&view=rev Log: [NTVDM] Save the error code returned by applications.
Modified: branches/ntvdm/subsystems/ntvdm/dos.c
Modified: branches/ntvdm/subsystems/ntvdm/dos.c URL: http://svn.reactos.org/svn/reactos/branches/ntvdm/subsystems/ntvdm/dos.c?rev... ============================================================================== --- branches/ntvdm/subsystems/ntvdm/dos.c [iso-8859-1] (original) +++ branches/ntvdm/subsystems/ntvdm/dos.c [iso-8859-1] Tue Oct 29 00:10:14 2013 @@ -28,6 +28,7 @@ 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 @@ 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));