diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-04-16 10:31:46 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-04-16 10:31:46 +0000 |
commit | 3711f8f842a40a14aa48fa098ea91ad65a5da567 (patch) | |
tree | 23e4c4fb7e8cfba63383fb58b95d7cbd85941d4f /EdkCompatibilityPkg | |
parent | 57076f458585a61a0fa1afb9a6527bc7a625ed64 (diff) | |
download | edk2-platforms-3711f8f842a40a14aa48fa098ea91ad65a5da567.tar.xz |
(((EFI_IFR_FORM_SET *) OpCodeData)->Guid) may not align properly on UINT32 boundary.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5072 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkCompatibilityPkg')
-rw-r--r-- | EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Utility.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Utility.c b/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Utility.c index 37be9d212e..75294c7e59 100644 --- a/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Utility.c +++ b/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Utility.c @@ -29,7 +29,7 @@ GetGuidOfFirstFormset ( while ((UINT8 *) OpCodeData < StartOfNextPackage) {
if (OpCodeData->OpCode == EFI_IFR_FORM_SET_OP) {
- return &(((EFI_IFR_FORM_SET *) OpCodeData)->Guid);
+ return AllocateCopyPool (sizeof(EFI_GUID), &(((EFI_IFR_FORM_SET *) OpCodeData)->Guid));
}
OpCodeData = (EFI_IFR_OP_HEADER *) ((UINT8 *) OpCodeData + OpCodeData->Length);
}
|