mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 00:20:34 +00:00
WINLDR: Repair LiveCD boot
svn path=/trunk/; revision=40687
This commit is contained in:
parent
ee3fc1bc60
commit
d30f655f34
1 changed files with 8 additions and 8 deletions
|
@ -469,6 +469,14 @@ LoadAndBootWindows(PCSTR OperatingSystemName, USHORT OperatingSystemVersion)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Special case for LiveCD */
|
||||||
|
if (!_strnicmp(FullPath, "LiveCD", strlen("LiveCD")))
|
||||||
|
{
|
||||||
|
strcpy(BootPath, FullPath + strlen("LiveCD"));
|
||||||
|
MachDiskGetBootPath(FullPath, sizeof(FullPath));
|
||||||
|
strcat(FullPath, BootPath);
|
||||||
|
}
|
||||||
|
|
||||||
/* Convert FullPath to SystemRoot */
|
/* Convert FullPath to SystemRoot */
|
||||||
PathSeparator = strstr(FullPath, "\\");
|
PathSeparator = strstr(FullPath, "\\");
|
||||||
strcpy(SystemRoot, PathSeparator);
|
strcpy(SystemRoot, PathSeparator);
|
||||||
|
@ -481,14 +489,6 @@ LoadAndBootWindows(PCSTR OperatingSystemName, USHORT OperatingSystemVersion)
|
||||||
strcpy(BootOptions, "");
|
strcpy(BootOptions, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Special case for LiveCD */
|
|
||||||
if (!_strnicmp(SystemRoot, "LiveCD", strlen("LiveCD")))
|
|
||||||
{
|
|
||||||
strcpy(BootPath, SystemRoot + strlen("LiveCD"));
|
|
||||||
MachDiskGetBootPath(SystemRoot, sizeof(SystemRoot));
|
|
||||||
strcat(SystemRoot, BootPath);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Let user know we started loading */
|
/* Let user know we started loading */
|
||||||
UiDrawStatusText("Loading...");
|
UiDrawStatusText("Loading...");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue