From e356b0f6fd28459f7d30c13444615803abc7d4b8 Mon Sep 17 00:00:00 2001 From: Yang Gang Date: Fri, 24 Jan 2025 15:08:58 +0800 Subject: [PATCH] EmulatorPkg PlatformBm: Fix duplicate BootManagerMenuApp boot option issue Signed-off-by: Yang Gang --- EmulatorPkg/Library/PlatformBmLib/PlatformBm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EmulatorPkg/Library/PlatformBmLib/PlatformBm.c b/EmulatorPkg/Library/PlatformBmLib/PlatformBm.c index 755fc04cb0..774075d55a 100644 --- a/EmulatorPkg/Library/PlatformBmLib/PlatformBm.c +++ b/EmulatorPkg/Library/PlatformBmLib/PlatformBm.c @@ -401,9 +401,9 @@ PlatformBootManagerAfterConsole ( case BOOT_WITH_DEFAULT_SETTINGS: default: PlatformBdsDiagnostics (IGNORE, TRUE); - PlatformBdsRegisterStaticBootOptions (); PlatformBdsConnectSequence (); EfiBootManagerRefreshAllBootOption (); + PlatformBdsRegisterStaticBootOptions (); EfiBootManagerSortLoadOptionVariable (LoadOptionTypeBoot, (SORT_COMPARE)CompareBootOption); break; }