mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 12:32:47 +00:00
[FREELDR]
When filling LoadOptions, strip the '/' commutator symbol in front of each option. Now we fully comply with Windows when holding LoaderBlock->LoadOptions, and the content of the registry value SystemStartOptions under HKLM\CurrentControlSet\Control display the options without their / symbol. [WIN32K] Now, the SystemStartOptions value doesn't contain / anymore. svn path=/trunk/; revision=57752
This commit is contained in:
parent
0981cdc216
commit
3f75d10725
2 changed files with 18 additions and 8 deletions
|
@ -85,9 +85,10 @@ WinLdrInitializePhase1(PLOADER_PARAMETER_BLOCK LoaderBlock,
|
|||
//CHAR SystemRoot[] = "\\WINNT\\";
|
||||
//CHAR ArcBoot[] = "multi(0)disk(0)rdisk(0)partition(1)";
|
||||
|
||||
CHAR HalPath[] = "\\";
|
||||
CHAR ArcBoot[256];
|
||||
CHAR MiscFiles[256];
|
||||
LPSTR LoadOptions, NewLoadOptions;
|
||||
CHAR HalPath[] = "\\";
|
||||
CHAR ArcBoot[256];
|
||||
CHAR MiscFiles[256];
|
||||
ULONG i;
|
||||
ULONG_PTR PathSeparator;
|
||||
PLOADER_PARAMETER_EXTENSION Extension;
|
||||
|
@ -120,9 +121,18 @@ WinLdrInitializePhase1(PLOADER_PARAMETER_BLOCK LoaderBlock,
|
|||
strncpy(LoaderBlock->NtHalPathName, HalPath, MAX_PATH);
|
||||
LoaderBlock->NtHalPathName = PaToVa(LoaderBlock->NtHalPathName);
|
||||
|
||||
/* Fill load options */
|
||||
LoaderBlock->LoadOptions = WinLdrSystemBlock->LoadOptions;
|
||||
/* Fill LoadOptions and strip the '/' commutator symbol in front of each option */
|
||||
NewLoadOptions = LoadOptions = LoaderBlock->LoadOptions = WinLdrSystemBlock->LoadOptions;
|
||||
strncpy(LoaderBlock->LoadOptions, Options, MAX_OPTIONS_LENGTH);
|
||||
|
||||
do
|
||||
{
|
||||
while (*LoadOptions == '/')
|
||||
++LoadOptions;
|
||||
|
||||
*NewLoadOptions++ = *LoadOptions;
|
||||
} while (*LoadOptions++);
|
||||
|
||||
LoaderBlock->LoadOptions = PaToVa(LoaderBlock->LoadOptions);
|
||||
|
||||
/* Arc devices */
|
||||
|
@ -136,8 +146,8 @@ WinLdrInitializePhase1(PLOADER_PARAMETER_BLOCK LoaderBlock,
|
|||
|
||||
/* Allocate the ARC structure */
|
||||
ArcDiskSig = HeapAllocate(FrLdrDefaultHeap,
|
||||
sizeof(ARC_DISK_SIGNATURE_EX),
|
||||
'giSD');
|
||||
sizeof(ARC_DISK_SIGNATURE_EX),
|
||||
'giSD');
|
||||
|
||||
/* Copy the data over */
|
||||
ArcDiskSig->DiskSignature.Signature = reactos_arc_disk_info[i].Signature;
|
||||
|
|
|
@ -173,7 +173,7 @@ InitVideo()
|
|||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
/* Check if VGA mode is requested. */
|
||||
if (wcsstr(awcBuffer, L"/BASEVIDEO") != 0)
|
||||
if (wcsstr(awcBuffer, L"BASEVIDEO") != 0)
|
||||
{
|
||||
ERR("VGA mode requested.\n");
|
||||
gbBaseVideo = TRUE;
|
||||
|
|
Loading…
Reference in a new issue