summaryrefslogtreecommitdiff
path: root/ArmPlatformPkg/Bds/BootMenu.c
diff options
context:
space:
mode:
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-06-28 11:55:11 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-06-28 11:55:11 +0000
commitc60ea9a873b8fe0c4b9409b28d1608f7f80c9c22 (patch)
tree93661d5a8e9bc8a446153eb8b9d8ba9e48288341 /ArmPlatformPkg/Bds/BootMenu.c
parentaa95e2f79c2d8a60c30e1aa69c7cd7077779e039 (diff)
downloadedk2-platforms-c60ea9a873b8fe0c4b9409b28d1608f7f80c9c22.tar.xz
ArmPlatformPkg/Bds: Use unaligned read to access OptionalData in EFI_LOAD_OPTION
EFI_LOAD_OPTION is a packed structure. Accessing to the non aligned double word requires to use ReadUnaligned32() function. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11916 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg/Bds/BootMenu.c')
-rw-r--r--ArmPlatformPkg/Bds/BootMenu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ArmPlatformPkg/Bds/BootMenu.c b/ArmPlatformPkg/Bds/BootMenu.c
index 35c569d0b7..1e25c1e72e 100644
--- a/ArmPlatformPkg/Bds/BootMenu.c
+++ b/ArmPlatformPkg/Bds/BootMenu.c
@@ -436,7 +436,7 @@ BootMenuMain (
Print(L"\t- %s\n",DevicePathTxt);
if (BootOption->OptionalData != NULL) {
- Print(L"\t- LoaderType: %d\n",BootOption->OptionalData->LoaderType);
+ Print(L"\t- LoaderType: %d\n", ReadUnaligned32 (&BootOption->OptionalData->LoaderType));
if (BootOption->OptionalData->Arguments != NULL) {
Print(L"\t- Arguments: %a\n",BootOption->OptionalData->Arguments);
}