[SETUPLIB] Improve the Freeldr timeout INI setting hack-fix. Dedicated to Mark Jansen ;-) CORE-15193

This commit is contained in:
Hermès Bélusca-Maïto 2018-11-24 02:39:58 +01:00
parent 91b013d387
commit a31d2f820a
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -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;