From d4864e235043b5adacfc50b47c0a747161398a1d Mon Sep 17 00:00:00 2001 From: lgao4 Date: Sun, 14 May 2006 09:14:06 +0000 Subject: [PATCH] git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@149 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Dxe/PlatformBds/Generic/BootMaint/BootOption.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/EdkNt32Pkg/Dxe/PlatformBds/Generic/BootMaint/BootOption.c b/EdkNt32Pkg/Dxe/PlatformBds/Generic/BootMaint/BootOption.c index 35187bf58f..3c21b12a1c 100644 --- a/EdkNt32Pkg/Dxe/PlatformBds/Generic/BootMaint/BootOption.c +++ b/EdkNt32Pkg/Dxe/PlatformBds/Generic/BootMaint/BootOption.c @@ -1362,6 +1362,9 @@ Returns: UINTN Index; UINTN Index2; BOOLEAN Found; + CHAR16 StrTemp[100]; + UINT16 *OptionBuffer; + UINTN OptionSize; BootOrderListSize = 0; BootOrderList = NULL; @@ -1388,6 +1391,14 @@ Returns: } if (Found) { + UnicodeSPrint (StrTemp, 100, L"Boot%04x", Index); + DEBUG((EFI_D_ERROR,"INdex= %s\n", StrTemp)); + OptionBuffer = BdsLibGetVariableAndSize ( + StrTemp, + &gEfiGlobalVariableGuid, + &OptionSize + ); + if (NULL == OptionBuffer) break; } }