Author: hbelusca
Date: Sun Sep 28 19:55:28 2014
New Revision: 64378
URL:
http://svn.reactos.org/svn/reactos?rev=64378&view=rev
Log:
[NTVDM]: The BIOS should have its BDA and BCT zero'ed out.
Modified:
trunk/reactos/subsystems/ntvdm/bios/bios32/bios32.c
trunk/reactos/subsystems/ntvdm/emulator.c
Modified: trunk/reactos/subsystems/ntvdm/bios/bios32/bios32.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/ntvdm/bios/bios…
==============================================================================
--- trunk/reactos/subsystems/ntvdm/bios/bios32/bios32.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/ntvdm/bios/bios32/bios32.c [iso-8859-1] Sun Sep 28 19:55:28
2014
@@ -499,6 +499,8 @@
static VOID InitializeBiosInfo(VOID)
{
+ RtlZeroMemory(Bct, sizeof(*Bct));
+
Bct->Length = sizeof(*Bct);
Bct->Model = BIOS_MODEL;
Bct->SubModel = BIOS_SUBMODEL;
@@ -527,6 +529,7 @@
*(PBYTE)(SEG_OFF_TO_PTR(0xF000, 0xFFFE)) = BIOS_MODEL;
/* Initialize the BDA contents */
+ RtlZeroMemory(Bda, sizeof(*Bda));
Bda->EquipmentList = BIOS_EQUIPMENT_LIST;
/*
Modified: trunk/reactos/subsystems/ntvdm/emulator.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/ntvdm/emulator.…
==============================================================================
--- trunk/reactos/subsystems/ntvdm/emulator.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/ntvdm/emulator.c [iso-8859-1] Sun Sep 28 19:55:28 2014
@@ -550,7 +550,7 @@
return FALSE;
}
// For diagnostics purposes!!
- FillMemory(BaseAddress, MAX_ADDRESS, 0xFF);
+ RtlFillMemory(BaseAddress, MAX_ADDRESS, 0xFF);
/* Initialize I/O ports */
/* Initialize RAM */