mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcBootManagementLib: Fix custom entry listing when ResetNVRAM is off
This commit is contained in:
parent
8e42201f04
commit
3e5cbe6b86
@ -1309,7 +1309,7 @@ AddFileSystemEntryForCustom (
|
||||
// When there are no custom entries and NVRAM reset is hidden
|
||||
// we have no work to do.
|
||||
//
|
||||
if (BootContext->PickerContext->NumCustomBootPaths == 0
|
||||
if (BootContext->PickerContext->AllCustomEntryCount == 0
|
||||
&& (!BootContext->PickerContext->ShowNvramReset
|
||||
|| BootContext->PickerContext->HideAuxiliary)) {
|
||||
return EFI_NOT_FOUND;
|
||||
@ -1319,7 +1319,7 @@ AddFileSystemEntryForCustom (
|
||||
DEBUG_INFO,
|
||||
"OCB: Adding fs %p for %u custom entries%a%a\n",
|
||||
OC_CUSTOM_FS_HANDLE,
|
||||
BootContext->PickerContext->NumCustomBootPaths,
|
||||
BootContext->PickerContext->AllCustomEntryCount,
|
||||
BootContext->PickerContext->ShowNvramReset ? " and nvram reset" : "",
|
||||
BootContext->PickerContext->HideAuxiliary ? " (aux hidden)" : " (aux shown)"
|
||||
));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user