diff options
| author | Kevin Loughlin <kevinloughlin@google.com> | 2026-10-16 22:54:04 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-10-21 12:48:29 +0300 |
| commit | b51b8dfbb06ff5a9c6b7fed4e443dd14f89403e9 (patch) | |
| tree | 8913933d908545500ba9b0be90703ec0172382e1 /MdeModulePkg/Library/PiDxeS3BootScriptLib/InternalBootScriptLib.h | |
| parent | 705de24e39a093ceb57fd7372e697e73380e57fe (diff) | |
| download | edk2-b51b8dfbb06ff5a9c6b7fed4e443dd14f89403e9.tar.xz | |
OvmfPkg/PlatformBootManagerLib: Guard Boot Manager Menu hotkey registration
In PlatformRegisterOptionsAndKeys() (BdsPlatform.c),
EfiBootManagerGetBootManagerMenu(&BootOption) returns EFI_NOT_FOUND when
UiApp.inf is omitted from the firmware volume (which
PlatformRegisterFvBootOption() already tolerates via FileIsInFv(), and
PlatformBootManagerUnableToBoot() in BdsPlatform.c and BdsEntry.c also
handle). Previously, PlatformRegisterOptionsAndKeys() asserted
ASSERT_EFI_ERROR(Status) and unconditionally called
EfiBootManagerAddKeyOptionVariable() with an uninitialized
BootOption.OptionNumber.
Replace ASSERT_EFI_ERROR(Status) with if (!EFI_ERROR (Status)) so that
F2/Esc hotkey registration is skipped cleanly when UiApp is absent,
while preserving identical behavior when UiApp is present.
Signed-off-by: Kevin Loughlin <kevinloughlin@google.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/InternalBootScriptLib.h')
0 files changed, 0 insertions, 0 deletions
