MdeModulePkg: Fix build failure in UefiBootManagerLib
authorRuiyu Ni <ruiyu.ni@intel.com>
Thu, 14 May 2015 02:09:59 +0000 (02:09 +0000)
committerniruiyu <niruiyu@Edk2>
Thu, 14 May 2015 02:09:59 +0000 (02:09 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17444 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Library/UefiBootManagerLib/BmLoadOption.c

index 630307e..2a42a7d 100644 (file)
@@ -556,7 +556,7 @@ EfiBootManagerDeleteLoadOptionVariable (
     //\r
     // If the associated *Order exists, just remove the reference in *Order.\r
     //\r
     //\r
     // If the associated *Order exists, just remove the reference in *Order.\r
     //\r
-    GetEfiGlobalVariable2 (mBmLoadOptionOrderName[OptionType], &OptionOrder, &OptionOrderSize);\r
+    GetEfiGlobalVariable2 (mBmLoadOptionOrderName[OptionType], (VOID **) &OptionOrder, &OptionOrderSize);\r
     for (Index = 0; Index < OptionOrderSize / sizeof (UINT16); Index++) {\r
       if (OptionOrder[Index] == OptionNumber) {\r
         OptionOrderSize -= sizeof (UINT16);\r
     for (Index = 0; Index < OptionOrderSize / sizeof (UINT16); Index++) {\r
       if (OptionOrder[Index] == OptionNumber) {\r
         OptionOrderSize -= sizeof (UINT16);\r