https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a31d2f820a15ab5274c4f3...
commit a31d2f820a15ab5274c4f33838b2862b890e765d Author: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org AuthorDate: Sat Nov 24 02:39:58 2018 +0100 Commit: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org CommitDate: Sat Nov 24 02:45:03 2018 +0100
[SETUPLIB] Improve the Freeldr timeout INI setting hack-fix. Dedicated to Mark Jansen ;-) CORE-15193 --- base/setup/lib/utils/bldrsup.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/base/setup/lib/utils/bldrsup.c b/base/setup/lib/utils/bldrsup.c index 09c59945b7..4848831068 100644 --- a/base/setup/lib/utils/bldrsup.c +++ b/base/setup/lib/utils/bldrsup.c @@ -230,8 +230,7 @@ CreateCommonFreeLdrSections(
/* Timeout=0 */ IniCacheInsertKey(BootStore->OptionsIniSection, NULL, INSERT_LAST, - // L"TimeOut", L"0"); // FIXME!! There is a bug in the INI parser where a given key can be inserted twice in the same section... - L"TimeOut", L"10"); + L"TimeOut", L"0");
/* Create "Display" section */ IniSection = IniCacheAppendSection(BootStore->IniCache, L"Display"); @@ -1237,7 +1236,7 @@ SetBootStoreOptions(
RtlStringCchPrintfW(TimeoutStr, ARRAYSIZE(TimeoutStr), L"%d", BootOptions->Timeout); IniCacheInsertKey(((PBOOT_STORE_INI_CONTEXT)BootStore)->OptionsIniSection, - NULL, INSERT_LAST, + NULL, INSERT_FIRST, // INSERT_LAST, // FIXME!! There is a bug in the INI parser where a given key can be inserted twice in the same section... L"TimeOut", TimeoutStr);
return STATUS_SUCCESS;