mirror of https://github.com/acidanthera/audk.git
Fix a bug in BuidHobGuidType() of PeiHobLib that it does not adjust the hob length to be multiple of 8. This does not follow the spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8873 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
66e1951f49
commit
ada3f18c41
|
@ -273,6 +273,7 @@ Returns:
|
||||||
|
|
||||||
Hob.Header->HobType = EFI_HOB_TYPE_GUID_EXTENSION;
|
Hob.Header->HobType = EFI_HOB_TYPE_GUID_EXTENSION;
|
||||||
Length = sizeof(EFI_HOB_GUID_TYPE) + BufferSize;
|
Length = sizeof(EFI_HOB_GUID_TYPE) + BufferSize;
|
||||||
|
Length = (Length + 0x7) & (~0x7);
|
||||||
Hob.Header->HobLength = (UINT16)Length;
|
Hob.Header->HobLength = (UINT16)Length;
|
||||||
CopyMem(&Hob.Guid->Name, Guid, sizeof(EFI_GUID));
|
CopyMem(&Hob.Guid->Name, Guid, sizeof(EFI_GUID));
|
||||||
CopyMem(Hob.Raw + sizeof(EFI_HOB_GUID_TYPE), Buffer, BufferSize);
|
CopyMem(Hob.Raw + sizeof(EFI_HOB_GUID_TYPE), Buffer, BufferSize);
|
||||||
|
|
Loading…
Reference in New Issue