diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2024-06-03 10:00:40 +0200 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-06-04 19:06:24 +0000 |
commit | de4cc40b8c1d9044df82e077e72ef6e192ea12e2 (patch) | |
tree | 62d827d73814329b075b4d920df771be327d826c /OvmfPkg | |
parent | 839bd179735284592ba8f0879d2cbf07e0cb585a (diff) | |
download | edk2-de4cc40b8c1d9044df82e077e72ef6e192ea12e2.zip edk2-de4cc40b8c1d9044df82e077e72ef6e192ea12e2.tar.gz edk2-de4cc40b8c1d9044df82e077e72ef6e192ea12e2.tar.bz2 |
MdeModulePkg/HiiDatabaseDxe: Avoid struct assignment
Struct assignments are not permitted in EDK2, as they may be converted
by the compiler into calls to the 'memcpy' intrinsic, which is not
guaranteed to be available in EDK2.
So replace the assignment with a call to CopyMem (), and -while at it-
replace the loop with a single CopyMem () call, as the loop operates on
items that are contiguous in memory.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'OvmfPkg')
0 files changed, 0 insertions, 0 deletions