summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-19 18:49:56 +0000
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-19 18:49:56 +0000
commit928fbe8f1ccde38db0058dd138f0787ca6c6e6ed (patch)
tree7ff8d333ec2e3030bd789bd5781004d081ade83a
parentb7b99c7662fc6d6689927fbf6cc30bd46f6ab2f5 (diff)
downloadedk2-platforms-928fbe8f1ccde38db0058dd138f0787ca6c6e6ed.tar.xz
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
-rw-r--r--Tools/Source/TianoTools/GenAcpiTable/GenAcpiTable.c3
1 files changed, 2 insertions, 1 deletions
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;
}