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:
klu2
2009-01-23 03:32:01 +00:00
parent 9872985bb1
commit cb26370805
10 changed files with 65 additions and 79 deletions

View File

@@ -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;
}
//