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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user