mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[NTVDM]: Fix my fix of r68003.
svn path=/trunk/; revision=68005
This commit is contained in:
parent
77f9846093
commit
6844f1e037
1 changed files with 14 additions and 2 deletions
|
@ -784,6 +784,7 @@ static VOID
|
|||
WINAPI
|
||||
Bios32Post(LPWORD Stack)
|
||||
{
|
||||
static BOOLEAN FirstBoot = TRUE;
|
||||
#if 0
|
||||
BOOLEAN Success;
|
||||
#endif
|
||||
|
@ -884,12 +885,23 @@ Bios32Post(LPWORD Stack)
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue