mirror of
https://github.com/reactos/reactos.git
synced 2025-03-30 17:10:22 +00:00
[SETUPLIB] Improve the Freeldr timeout INI setting hack-fix. Dedicated to Mark Jansen ;-) CORE-15193
This commit is contained in:
parent
91b013d387
commit
a31d2f820a
1 changed files with 2 additions and 3 deletions
|
@ -230,8 +230,7 @@ CreateCommonFreeLdrSections(
|
||||||
|
|
||||||
/* Timeout=0 */
|
/* Timeout=0 */
|
||||||
IniCacheInsertKey(BootStore->OptionsIniSection, NULL, INSERT_LAST,
|
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"0");
|
||||||
L"TimeOut", L"10");
|
|
||||||
|
|
||||||
/* Create "Display" section */
|
/* Create "Display" section */
|
||||||
IniSection = IniCacheAppendSection(BootStore->IniCache, L"Display");
|
IniSection = IniCacheAppendSection(BootStore->IniCache, L"Display");
|
||||||
|
@ -1237,7 +1236,7 @@ SetBootStoreOptions(
|
||||||
|
|
||||||
RtlStringCchPrintfW(TimeoutStr, ARRAYSIZE(TimeoutStr), L"%d", BootOptions->Timeout);
|
RtlStringCchPrintfW(TimeoutStr, ARRAYSIZE(TimeoutStr), L"%d", BootOptions->Timeout);
|
||||||
IniCacheInsertKey(((PBOOT_STORE_INI_CONTEXT)BootStore)->OptionsIniSection,
|
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);
|
L"TimeOut", TimeoutStr);
|
||||||
|
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
|
|
Loading…
Reference in a new issue