typedef struct tagCMDLINEINFO
{
PCSTR DebugString;
- PCSTR DefaultOperatingSystem;
+ PCSTR DefaultOs;
LONG TimeOut;
} CMDLINEINFO, *PCMDLINEINFO;
/* Set defaults */
CmdLineInfo.DebugString = NULL;
- CmdLineInfo.DefaultOperatingSystem = NULL;
+ CmdLineInfo.DefaultOs = NULL;
CmdLineInfo.TimeOut = -1;
/*
/* Copy the default OS */
RtlStringCbCopyNA(DefaultOs, sizeof(DefaultOs), Setting, Length);
- CmdLineInfo.DefaultOperatingSystem = DefaultOs;
+ CmdLineInfo.DefaultOs = DefaultOs;
}
/* Get ramdisk base address */
PCSTR
CmdLineGetDefaultOS(VOID)
{
- return CmdLineInfo.DefaultOperatingSystem;
+ return CmdLineInfo.DefaultOs;
}
LONG
TRACE("Hello from paged mode, KiSystemStartup %p, LoaderBlockVA %p!\n",
KiSystemStartup, LoaderBlockVA);
- // Zero KI_USER_SHARED_DATA page
- memset((PVOID)KI_USER_SHARED_DATA, 0, MM_PAGE_SIZE);
+ /* Zero KI_USER_SHARED_DATA page */
+ RtlZeroMemory((PVOID)KI_USER_SHARED_DATA, MM_PAGE_SIZE);
WinLdrpDumpMemoryDescriptors(LoaderBlockVA);
WinLdrpDumpBootDriver(LoaderBlockVA);