Author: hbelusca Date: Thu Jun 4 02:14:24 2015 New Revision: 68005
URL: http://svn.reactos.org/svn/reactos?rev=68005&view=rev Log: [NTVDM]: Fix my fix of r68003.
Modified: trunk/reactos/subsystems/mvdm/ntvdm/bios/bios32/bios32.c
Modified: trunk/reactos/subsystems/mvdm/ntvdm/bios/bios32/bios32.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/mvdm/ntvdm/bios/... ============================================================================== --- trunk/reactos/subsystems/mvdm/ntvdm/bios/bios32/bios32.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/mvdm/ntvdm/bios/bios32/bios32.c [iso-8859-1] Thu Jun 4 02:14:24 2015 @@ -784,6 +784,7 @@ WINAPI Bios32Post(LPWORD Stack) { + static BOOLEAN FirstBoot = TRUE; #if 0 BOOLEAN Success; #endif @@ -884,12 +885,23 @@ switch (Bda->SoftReset) { case 0x0000: - DisplayMessage(L"NTVDM is performing a COLD reboot! The program you are currently testing does not seem to behave correctly! The VDM will shut down..."); - // Fall through + { + if (!FirstBoot) + { + DisplayMessage(L"NTVDM is performing a COLD reboot! The program you are currently testing does not seem to behave correctly! The VDM will shut down..."); + EmulatorTerminate(); + return; + } + FirstBoot = FALSE; + break; + } + case 0x1234: + { DisplayMessage(L"NTVDM is performing a WARM reboot! This is not supported at the moment. The VDM will shut down..."); EmulatorTerminate(); return; + }
default: break;