mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +00:00
- WINLDR: Use SystemRoot path as it is because after recent Herve's changes there is no need to do additional operations with it.
svn path=/trunk/; revision=40682
This commit is contained in:
parent
54d36c08b2
commit
e78a6436ee
1 changed files with 3 additions and 6 deletions
|
@ -75,7 +75,7 @@ AllocateAndInitLPB(PLOADER_PARAMETER_BLOCK *OutLoaderBlock)
|
|||
VOID
|
||||
WinLdrInitializePhase1(PLOADER_PARAMETER_BLOCK LoaderBlock,
|
||||
PCHAR Options,
|
||||
PCHAR SystemPath,
|
||||
PCHAR SystemRoot,
|
||||
PCHAR BootPath,
|
||||
USHORT VersionToBoot)
|
||||
{
|
||||
|
@ -86,7 +86,6 @@ WinLdrInitializePhase1(PLOADER_PARAMETER_BLOCK LoaderBlock,
|
|||
//CHAR ArcBoot[] = "multi(0)disk(0)rdisk(0)partition(1)";
|
||||
|
||||
CHAR HalPath[] = "\\";
|
||||
CHAR SystemRoot[256];
|
||||
CHAR ArcBoot[256];
|
||||
CHAR MiscFiles[256];
|
||||
ULONG i, PathSeparator;
|
||||
|
@ -95,11 +94,9 @@ WinLdrInitializePhase1(PLOADER_PARAMETER_BLOCK LoaderBlock,
|
|||
LoaderBlock->u.I386.CommonDataArea = NULL; // Force No ABIOS support
|
||||
|
||||
/* Construct SystemRoot and ArcBoot from SystemPath */
|
||||
PathSeparator = strstr(SystemPath, "\\") - SystemPath;
|
||||
strncpy(ArcBoot, SystemPath, PathSeparator);
|
||||
PathSeparator = strstr(BootPath, "\\") - BootPath;
|
||||
strncpy(ArcBoot, BootPath, PathSeparator);
|
||||
ArcBoot[PathSeparator] = 0;
|
||||
strcpy(SystemRoot, &SystemPath[PathSeparator]);
|
||||
strcat(SystemRoot, "\\");
|
||||
|
||||
DPRINTM(DPRINT_WINDOWS, "ArcBoot: %s\n", ArcBoot);
|
||||
DPRINTM(DPRINT_WINDOWS, "SystemRoot: %s\n", SystemRoot);
|
||||
|
|
Loading…
Reference in a new issue