[SETUPLIB] Improve the Freeldr timeout INI setting hack-fix. Dedicated to Mark Jansen...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 24 Nov 2018 01:39:58 +0000 (02:39 +0100)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 24 Nov 2018 01:45:03 +0000 (02:45 +0100)
base/setup/lib/utils/bldrsup.c

index 09c5994..4848831 100644 (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;