diff options
Diffstat (limited to 'MdePkg/Include/IndustryStandard/PeImage.h')
-rw-r--r-- | MdePkg/Include/IndustryStandard/PeImage.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdePkg/Include/IndustryStandard/PeImage.h b/MdePkg/Include/IndustryStandard/PeImage.h index e47b227a41..7e253dcb19 100644 --- a/MdePkg/Include/IndustryStandard/PeImage.h +++ b/MdePkg/Include/IndustryStandard/PeImage.h @@ -335,7 +335,7 @@ typedef EFI_IMAGE_NT_HEADERS64 EFI_IMAGE_NT_HEADERS; (EFI_IMAGE_SECTION_HEADER *) \
( \
(UINT32) ntheader + \
- FIELD_OFFSET (EFI_IMAGE_NT_HEADERS, OptionalHeader) + \
+ OFFSET_OF (EFI_IMAGE_NT_HEADERS, OptionalHeader) + \
((EFI_IMAGE_NT_HEADERS *) (ntheader))->FileHeader.SizeOfOptionalHeader \
) \
)
|