]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/UefiBootManagerLib: Put BootMenu at the end of BootOrder
authorLi, Walon <walon.li@hpe.com>
Fri, 19 Feb 2021 09:39:32 +0000 (17:39 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 25 Feb 2021 15:57:50 +0000 (15:57 +0000)
commit7f34681c488aee2563eaa2afcc6a2c8aa7c5b912
tree42f85e122d4ac9be304d733f7c2c106465490051
parent35f87da8a2debd443ac842db0a3794b17914a8f4
MdeModulePkg/UefiBootManagerLib: Put BootMenu at the end of BootOrder

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3135

When Boot Menu does not exist in the BootOrder, BmRegisterBootManagerMenu
will create one into list. However, it should be put at the "end" of
BootOrder instead of "start" of BootOrder. Replace 0 by -1 to adjust
order of load options.

Signed-off-by: Walon Li <walon.li@hpe.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c