OpenCoreMisc: Fix excluded handled initialisation

This commit is contained in:
vit9696 2020-04-29 05:14:06 +03:00
parent 9d12c2cfa7
commit cbfbc3487f
3 changed files with 8 additions and 3 deletions

View File

@ -405,6 +405,7 @@ InternalPrepareScanInfo (
);
}
} else {
DEBUG ((DEBUG_INFO, "OCB: Skipping loaded handle %p %p\n", Context->ExcludeHandle, DevPathScanInfo->Device));
Status = EFI_UNSUPPORTED;
}

View File

@ -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
));

View File

@ -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);