(((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
This commit is contained in:
qwang12 2008-04-16 10:31:46 +00:00
parent 57076f4585
commit 3711f8f842
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}