From: Ruiyu Ni Date: Thu, 14 May 2015 02:09:59 +0000 (+0000) Subject: MdeModulePkg: Fix build failure in UefiBootManagerLib X-Git-Tag: edk2-stable201903~9812 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=833a8349c15326ad4226c96fc2aa0357f10e8824;hp=db1b9ea0b4e9bb13a0f8232f1e3047aad5b878b7 MdeModulePkg: Fix build failure in UefiBootManagerLib Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17444 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmLoadOption.c b/MdeModulePkg/Library/UefiBootManagerLib/BmLoadOption.c index 630307ed03..2a42a7d354 100644 --- a/MdeModulePkg/Library/UefiBootManagerLib/BmLoadOption.c +++ b/MdeModulePkg/Library/UefiBootManagerLib/BmLoadOption.c @@ -556,7 +556,7 @@ EfiBootManagerDeleteLoadOptionVariable ( // // If the associated *Order exists, just remove the reference in *Order. // - GetEfiGlobalVariable2 (mBmLoadOptionOrderName[OptionType], &OptionOrder, &OptionOrderSize); + GetEfiGlobalVariable2 (mBmLoadOptionOrderName[OptionType], (VOID **) &OptionOrder, &OptionOrderSize); for (Index = 0; Index < OptionOrderSize / sizeof (UINT16); Index++) { if (OptionOrder[Index] == OptionNumber) { OptionOrderSize -= sizeof (UINT16);