Fix issue from code scrub.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7349 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -138,6 +138,14 @@ BdsBootDeviceSelect (
|
||||
//
|
||||
UnicodeSPrint (Buffer, sizeof (Buffer), L"Boot%04x", *mBootNext);
|
||||
BootOption = BdsLibVariableToOption (&BootLists, Buffer);
|
||||
|
||||
//
|
||||
// If fail to get boot option from variable, just return and do nothing.
|
||||
//
|
||||
if (BootOption == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
BootOption->BootCurrent = *mBootNext;
|
||||
}
|
||||
//
|
||||
|
Reference in New Issue
Block a user