mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 21:38:43 +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,6 +85,7 @@ WinLdrInitializePhase1(PLOADER_PARAMETER_BLOCK LoaderBlock,
|
|||
//CHAR SystemRoot[] = "\\WINNT\\";
|
||||
//CHAR ArcBoot[] = "multi(0)disk(0)rdisk(0)partition(1)";
|
||||
|
||||
LPSTR LoadOptions, NewLoadOptions;
|
||||
CHAR HalPath[] = "\\";
|
||||
CHAR ArcBoot[256];
|
||||
CHAR MiscFiles[256];
|
||||
|
@ -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 */
|
||||
|
|
|
@ -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