mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
[FREELDR] Minor code style - use RtlZeroMemory(); shorter member name; use different debug channel.
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
#include <freeldr.h>
|
||||
|
||||
#include <debug.h>
|
||||
DBG_DEFAULT_CHANNEL(INIFILE);
|
||||
DBG_DEFAULT_CHANNEL(WARNING);
|
||||
|
||||
/* GLOBALS ********************************************************************/
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
typedef struct tagCMDLINEINFO
|
||||
{
|
||||
PCSTR DebugString;
|
||||
PCSTR DefaultOperatingSystem;
|
||||
PCSTR DefaultOs;
|
||||
LONG TimeOut;
|
||||
} CMDLINEINFO, *PCMDLINEINFO;
|
||||
|
||||
@@ -33,7 +33,7 @@ CmdLineParse(IN PCSTR CmdLine)
|
||||
|
||||
/* Set defaults */
|
||||
CmdLineInfo.DebugString = NULL;
|
||||
CmdLineInfo.DefaultOperatingSystem = NULL;
|
||||
CmdLineInfo.DefaultOs = NULL;
|
||||
CmdLineInfo.TimeOut = -1;
|
||||
|
||||
/*
|
||||
@@ -84,7 +84,7 @@ CmdLineParse(IN PCSTR CmdLine)
|
||||
|
||||
/* Copy the default OS */
|
||||
RtlStringCbCopyNA(DefaultOs, sizeof(DefaultOs), Setting, Length);
|
||||
CmdLineInfo.DefaultOperatingSystem = DefaultOs;
|
||||
CmdLineInfo.DefaultOs = DefaultOs;
|
||||
}
|
||||
|
||||
/* Get ramdisk base address */
|
||||
@@ -128,7 +128,7 @@ CmdLineGetDebugString(VOID)
|
||||
PCSTR
|
||||
CmdLineGetDefaultOS(VOID)
|
||||
{
|
||||
return CmdLineInfo.DefaultOperatingSystem;
|
||||
return CmdLineInfo.DefaultOs;
|
||||
}
|
||||
|
||||
LONG
|
||||
|
||||
@@ -914,8 +914,8 @@ LoadAndBootWindowsCommon(
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user