mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OpenCoreMisc: Fix excluded handled initialisation
This commit is contained in:
parent
9d12c2cfa7
commit
cbfbc3487f
@ -405,6 +405,7 @@ InternalPrepareScanInfo (
|
||||
);
|
||||
}
|
||||
} else {
|
||||
DEBUG ((DEBUG_INFO, "OCB: Skipping loaded handle %p %p\n", Context->ExcludeHandle, DevPathScanInfo->Device));
|
||||
Status = EFI_UNSUPPORTED;
|
||||
}
|
||||
|
||||
|
||||
@ -528,7 +528,7 @@ OcScanForBootEntries (
|
||||
if (Index < Context->AbsoluteEntryCount) {
|
||||
DEBUG ((
|
||||
DEBUG_INFO,
|
||||
"OCB: Custom entry %u is %a\n",
|
||||
"OCB: Custom entry %u is %s\n",
|
||||
(UINT32) EntryIndex,
|
||||
Entries[EntryIndex].Name
|
||||
));
|
||||
|
||||
@ -480,8 +480,12 @@ OcMiscLateInit (
|
||||
//
|
||||
// Do not disclose self entry unless asked.
|
||||
//
|
||||
if (LoadHandle != NULL && Config->Misc.Boot.HideSelf) {
|
||||
*LoadHandle = OcHandle;
|
||||
if (LoadHandle != NULL) {
|
||||
if (Config->Misc.Boot.HideSelf) {
|
||||
*LoadHandle = OcHandle;
|
||||
} else {
|
||||
*LoadHandle = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
HibernateMode = OC_BLOB_GET (&Config->Misc.Boot.HibernateMode);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user