mirror of https://github.com/acidanthera/audk.git
Fix GCC build error.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" <Jiewen.yao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17565 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
03d486b2a0
commit
eb01c45a1f
|
@ -1107,10 +1107,8 @@ InsertImageRecord (
|
|||
EFI_IMAGE_DOS_HEADER *DosHdr;
|
||||
UINT32 PeCoffHeaderOffset;
|
||||
UINT32 SectionAlignment;
|
||||
UINT16 ImageType;
|
||||
EFI_IMAGE_SECTION_HEADER *Section;
|
||||
EFI_IMAGE_OPTIONAL_HEADER_PTR_UNION Hdr;
|
||||
UINT16 Magic;
|
||||
UINT8 *Name;
|
||||
UINTN Index;
|
||||
IMAGE_PROPERTIES_RECORD *ImageRecord;
|
||||
|
@ -1168,15 +1166,11 @@ InsertImageRecord (
|
|||
// Magic value in the OptionalHeader is EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC
|
||||
// then override the magic value to EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC
|
||||
//
|
||||
Magic = EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC;
|
||||
ImageType = Hdr.Pe32->OptionalHeader.Subsystem;
|
||||
SectionAlignment = Hdr.Pe32->OptionalHeader.SectionAlignment;
|
||||
} else {
|
||||
//
|
||||
// Get the magic value from the PE/COFF Optional Header
|
||||
//
|
||||
Magic = Hdr.Pe32->OptionalHeader.Magic;
|
||||
ImageType = Hdr.Pe32Plus->OptionalHeader.Subsystem;
|
||||
SectionAlignment = Hdr.Pe32Plus->OptionalHeader.SectionAlignment;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue