]> git.proxmox.com Git - mirror_edk2.git/commitdiff
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@149 6f19259b...
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Sun, 14 May 2006 09:14:06 +0000 (09:14 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Sun, 14 May 2006 09:14:06 +0000 (09:14 +0000)
EdkNt32Pkg/Dxe/PlatformBds/Generic/BootMaint/BootOption.c

index 35187bf58f5d4dada71b5936b56279518a02a5b2..3c21b12a1c7d5b2e48842ddb559513b46a1d8757 100644 (file)
@@ -1362,6 +1362,9 @@ Returns:
   UINTN         Index;\r
   UINTN         Index2;\r
   BOOLEAN       Found;\r
   UINTN         Index;\r
   UINTN         Index2;\r
   BOOLEAN       Found;\r
+  CHAR16        StrTemp[100];\r
+  UINT16        *OptionBuffer;\r
+  UINTN         OptionSize;\r
 \r
   BootOrderListSize = 0;\r
   BootOrderList     = NULL;\r
 \r
   BootOrderListSize = 0;\r
   BootOrderList     = NULL;\r
@@ -1388,6 +1391,14 @@ Returns:
       }\r
 \r
       if (Found) {\r
       }\r
 \r
       if (Found) {\r
+          UnicodeSPrint (StrTemp, 100, L"Boot%04x", Index);\r
+          DEBUG((EFI_D_ERROR,"INdex= %s\n", StrTemp));\r
+       OptionBuffer = BdsLibGetVariableAndSize (\r
+                StrTemp,\r
+                &gEfiGlobalVariableGuid,\r
+                &OptionSize\r
+                );\r
+      if (NULL == OptionBuffer) \r
         break;\r
       }\r
     }\r
         break;\r
       }\r
     }\r