From: mdkinney Date: Tue, 19 Sep 2006 18:49:56 +0000 (+0000) Subject: Use a 64-bit Optional Header when a 64-bit image is detected X-Git-Tag: edk2-stable201903~24312 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=928fbe8f1ccde38db0058dd138f0787ca6c6e6ed;ds=sidebyside 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 --- diff --git a/Tools/Source/TianoTools/GenAcpiTable/GenAcpiTable.c b/Tools/Source/TianoTools/GenAcpiTable/GenAcpiTable.c index 583c742f3b..7a413eacb0 100644 --- a/Tools/Source/TianoTools/GenAcpiTable/GenAcpiTable.c +++ b/Tools/Source/TianoTools/GenAcpiTable/GenAcpiTable.c @@ -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; }