mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
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:
parent
4b5d785258
commit
d2f23650e6
1 changed files with 9 additions and 9 deletions
|
@ -96,6 +96,7 @@ VOID RunLoader(VOID)
|
||||||
|
|
||||||
/* If Timeout is 0, don't even bother loading any gui */
|
/* If Timeout is 0, don't even bother loading any gui */
|
||||||
if (!UserInterfaceUp) {
|
if (!UserInterfaceUp) {
|
||||||
|
SelectedOperatingSystem = DefaultOperatingSystem;
|
||||||
goto NoGui;
|
goto NoGui;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -111,7 +112,6 @@ VOID RunLoader(VOID)
|
||||||
|
|
||||||
NoGui:
|
NoGui:
|
||||||
TimeOut = -1;
|
TimeOut = -1;
|
||||||
DefaultOperatingSystem = SelectedOperatingSystem;
|
|
||||||
|
|
||||||
// Try to open the operating system section in the .ini file
|
// Try to open the operating system section in the .ini file
|
||||||
if (!IniOpenSection(OperatingSystemSectionNames[SelectedOperatingSystem], &SectionId))
|
if (!IniOpenSection(OperatingSystemSectionNames[SelectedOperatingSystem], &SectionId))
|
||||||
|
|
Loading…
Reference in a new issue