diff options
author | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-06-28 11:55:11 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-06-28 11:55:11 +0000 |
commit | c60ea9a873b8fe0c4b9409b28d1608f7f80c9c22 (patch) | |
tree | 93661d5a8e9bc8a446153eb8b9d8ba9e48288341 /ArmPlatformPkg/Bds/BootMenu.c | |
parent | aa95e2f79c2d8a60c30e1aa69c7cd7077779e039 (diff) | |
download | edk2-c60ea9a873b8fe0c4b9409b28d1608f7f80c9c22.tar.gz |
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.c | 2 |
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);
}
|