mirror of https://github.com/acidanthera/audk.git
Use a 64-bit Optional Header when a 64-bit image is detected
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1562 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
b7b99c7662
commit
928fbe8f1c
|
@ -196,6 +196,7 @@ Returns:
|
|||
UINT32 PESigOffset;
|
||||
EFI_IMAGE_FILE_HEADER FileHeader;
|
||||
EFI_IMAGE_OPTIONAL_HEADER32 OptionalHeader32;
|
||||
EFI_IMAGE_OPTIONAL_HEADER64 OptionalHeader64;
|
||||
EFI_IMAGE_SECTION_HEADER SectionHeader;
|
||||
UINT8 *Buffer;
|
||||
long SaveFilePosition;
|
||||
|
@ -266,7 +267,7 @@ Returns:
|
|||
goto Finish;
|
||||
}
|
||||
|
||||
if (fread (&OptionalHeader32, sizeof (EFI_IMAGE_OPTIONAL_HEADER64), 1, InFptr) != 1) {
|
||||
if (fread (&OptionalHeader64, sizeof (EFI_IMAGE_OPTIONAL_HEADER64), 1, InFptr) != 1) {
|
||||
Error (NULL, 0, 0, InFileName, "failed to read optional header from input file");
|
||||
goto Finish;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue