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>
\r
Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.\r
Copyright (c) 2011 - 2020, Intel Corporation. All rights reserved.<BR>\r
\r
Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.\r
Copyright (c) 2011 - 2020, Intel Corporation. All rights reserved.<BR>\r
-(C) Copyright 2015-2016 Hewlett Packard Enterprise Development LP<BR>\r
+(C) Copyright 2015-2021 Hewlett Packard Enterprise Development LP<BR>\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
EfiBootManagerFreeLoadOptions (BootOptions, BootOptionCount);\r
);\r
\r
EfiBootManagerFreeLoadOptions (BootOptions, BootOptionCount);\r
);\r
\r
- return EfiBootManagerAddLoadOptionVariable (BootOption, 0);\r
+ return EfiBootManagerAddLoadOptionVariable (BootOption, (UINTN) -1);\r