mirror of https://github.com/acidanthera/audk.git
GenericBdsLib: Remove a un-reasonable ASSERT when BdsLibVariableToOption() returns NULL because it is possible for BdsLibVariableToOption() to return NULL if the boot option variable does not exist or the boot option is not active.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9805 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
052019e1fa
commit
7490e2bed8
|
@ -572,9 +572,9 @@ BdsLibBuildOptionFromVar (
|
|||
}
|
||||
|
||||
Option = BdsLibVariableToOption (BdsCommonOptionList, OptionName);
|
||||
ASSERT (Option != NULL);
|
||||
Option->BootCurrent = OptionOrder[Index];
|
||||
|
||||
if (Option != NULL) {
|
||||
Option->BootCurrent = OptionOrder[Index];
|
||||
}
|
||||
}
|
||||
|
||||
FreePool (OptionOrder);
|
||||
|
|
Loading…
Reference in New Issue