diff options
Diffstat (limited to 'Tools/Source/TianoTools')
-rw-r--r-- | Tools/Source/TianoTools/GenAcpiTable/GenAcpiTable.c | 3 |
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;
}
|