From ea8db157ca285825ff482900f14b816c170c96a5 Mon Sep 17 00:00:00 2001 From: vit9696 Date: Fri, 10 Jan 2020 11:25:38 +0300 Subject: [PATCH] OcBootManagementLib: Permit custom entries to be default --- Library/OcBootManagementLib/DefaultEntryChoice.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Library/OcBootManagementLib/DefaultEntryChoice.c b/Library/OcBootManagementLib/DefaultEntryChoice.c index 73dc838c..f11f6368 100644 --- a/Library/OcBootManagementLib/DefaultEntryChoice.c +++ b/Library/OcBootManagementLib/DefaultEntryChoice.c @@ -273,12 +273,11 @@ InternalGetBootEntryByDevicePath ( for (Index = 0; Index < NumBootEntries; ++Index) { BootEntry = &BootEntries[Index]; - if (BootEntry->Type == OcBootCustom || BootEntry->Type == OcBootSystem) { + if (BootEntry->DevicePath == NULL || BootEntry->Type == OcBootSystem) { continue; } OcDevicePath = BootEntry->DevicePath; - ASSERT (OcDevicePath != NULL); if ((GetDevicePathSize (OcDevicePath) - END_DEVICE_PATH_LENGTH) < RootDevicePathSize) { continue;