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 35187bf..3c21b12 100644 (file)
@@ -1362,6 +1362,9 @@ Returns:
   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
@@ -1388,6 +1391,14 @@ Returns:
       }\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