mirror of https://github.com/acidanthera/audk.git
(((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:
parent
57076f4585
commit
3711f8f842
|
@ -29,7 +29,7 @@ GetGuidOfFirstFormset (
|
||||||
|
|
||||||
while ((UINT8 *) OpCodeData < StartOfNextPackage) {
|
while ((UINT8 *) OpCodeData < StartOfNextPackage) {
|
||||||
if (OpCodeData->OpCode == EFI_IFR_FORM_SET_OP) {
|
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);
|
OpCodeData = (EFI_IFR_OP_HEADER *) ((UINT8 *) OpCodeData + OpCodeData->Length);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue