mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 16:41:40 +00:00
[SETUPLIB] Improve a bit the management of boot-store options
- QueryBootStoreOptions(): De-duplicate code. - SetBootStoreOpt(): Respect the FieldsToChange flag. - BOOT_STORE_OPTIONS: Remove unused Version field and distinguish between "Current" and "Next" BootEntryKey.
This commit is contained in:
parent
68c2a28973
commit
9b563d32d2
3 changed files with 68 additions and 54 deletions
|
@ -130,15 +130,15 @@ CreateFreeLoaderReactOSEntries(
|
|||
#if DBG && !defined(_WINKD_)
|
||||
if (IsUnattendedSetup)
|
||||
{
|
||||
BootOptions.CurrentBootEntryKey = MAKESTRKEY(L"ReactOS_KdSerial");
|
||||
BootOptions.NextBootEntryKey = MAKESTRKEY(L"ReactOS_KdSerial");
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
#if DBG
|
||||
BootOptions.CurrentBootEntryKey = MAKESTRKEY(L"ReactOS_Debug");
|
||||
BootOptions.NextBootEntryKey = MAKESTRKEY(L"ReactOS_Debug");
|
||||
#else
|
||||
BootOptions.CurrentBootEntryKey = MAKESTRKEY(L"ReactOS");
|
||||
BootOptions.NextBootEntryKey = MAKESTRKEY(L"ReactOS");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -157,8 +157,8 @@ CreateFreeLoaderReactOSEntries(
|
|||
}
|
||||
#endif
|
||||
|
||||
BootOptions.Version = FreeLdr;
|
||||
SetBootStoreOptions(BootStoreHandle, &BootOptions, 2 | 1);
|
||||
SetBootStoreOptions(BootStoreHandle, &BootOptions,
|
||||
BOOT_OPTIONS_TIMEOUT | BOOT_OPTIONS_NEXT_BOOTENTRY_KEY);
|
||||
}
|
||||
|
||||
static NTSTATUS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue