bug fix: use the requested default os when timeout is 0 instead of defaulting to the first OS in the list.

svn path=/trunk/; revision=13344
This commit is contained in:
Royce Mitchell III 2005-01-28 06:07:48 +00:00
parent 4b5d785258
commit d2f23650e6

View file

@ -96,6 +96,7 @@ VOID RunLoader(VOID)
/* If Timeout is 0, don't even bother loading any gui */
if (!UserInterfaceUp) {
SelectedOperatingSystem = DefaultOperatingSystem;
goto NoGui;
}
@ -111,7 +112,6 @@ VOID RunLoader(VOID)
NoGui:
TimeOut = -1;
DefaultOperatingSystem = SelectedOperatingSystem;
// Try to open the operating system section in the .ini file
if (!IniOpenSection(OperatingSystemSectionNames[SelectedOperatingSystem], &SectionId))