WINLDR: Repair LiveCD boot

svn path=/trunk/; revision=40687
This commit is contained in:
Hervé Poussineau 2009-04-24 21:48:20 +00:00
parent ee3fc1bc60
commit d30f655f34

View file

@ -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...");