mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 08:34:07 +02:00
ArmPlatformPkg/Bds: Fixed the deletion of boot option entries
When deleting a boot entry from the boot menu all next entries must be copied one entry up to rearrange the BootOrder list. This patch fixes the copy: each boot entry is 16 bits, not 8 bits. Signed-off-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14090 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
1ea3171660
commit
9127a094fd
@ -1,6 +1,6 @@
|
|||||||
/** @file
|
/** @file
|
||||||
*
|
*
|
||||||
* Copyright (c) 2011-2012, ARM Limited. All rights reserved.
|
* Copyright (c) 2011-2013, ARM Limited. All rights reserved.
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials
|
* This program and the accompanying materials
|
||||||
* are licensed and made available under the terms and conditions of the BSD License
|
* are licensed and made available under the terms and conditions of the BSD License
|
||||||
@ -367,7 +367,11 @@ BootOptionDelete (
|
|||||||
if (BootOrder[Index] == BootOption->LoadOptionIndex) {
|
if (BootOrder[Index] == BootOption->LoadOptionIndex) {
|
||||||
// If it the last entry we do not need to rearrange the BootOrder list
|
// If it the last entry we do not need to rearrange the BootOrder list
|
||||||
if (Index + 1 != BootOrderCount) {
|
if (Index + 1 != BootOrderCount) {
|
||||||
CopyMem (&BootOrder[Index],&BootOrder[Index+1], BootOrderCount - (Index + 1));
|
CopyMem (
|
||||||
|
&BootOrder[Index],
|
||||||
|
&BootOrder[Index + 1],
|
||||||
|
(BootOrderCount - (Index + 1)) * sizeof(UINT16)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user