Fix the bug that <continue> may not boot the first boot option but return back to front page.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11109 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
niruiyu 2010-12-01 05:57:13 +00:00
parent d1e380b1d6
commit d860010877
1 changed files with 11 additions and 0 deletions

View File

@ -143,6 +143,17 @@ BdsBootDeviceSelect (
// Parse the boot order to get boot option
//
BdsLibBuildOptionFromVar (&BootLists, L"BootOrder");
//
// When we didn't have chance to build boot option variables in the first
// full configuration boot (e.g.: Reset in the first page or in Device Manager),
// we have no boot options in the following mini configuration boot.
// Give the last chance to enumerate the boot options.
//
if (IsListEmpty (&BootLists)) {
BdsLibEnumerateAllBootOption (&BootLists);
}
Link = BootLists.ForwardLink;
//