diff options
-rw-r--r-- | Tools/Source/TianoTools/PeCoffLoader/BasePeCoff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/Source/TianoTools/PeCoffLoader/BasePeCoff.c b/Tools/Source/TianoTools/PeCoffLoader/BasePeCoff.c index 9c25e1f..556b2d7 100644 --- a/Tools/Source/TianoTools/PeCoffLoader/BasePeCoff.c +++ b/Tools/Source/TianoTools/PeCoffLoader/BasePeCoff.c @@ -858,7 +858,7 @@ Returns: Base = PeCoffLoaderImageAddress (ImageContext, Section->VirtualAddress);
End = PeCoffLoaderImageAddress (
ImageContext,
- Section->VirtualAddress + Section->Misc.VirtualSize - 1
+ Section->VirtualAddress + Section->SizeOfRawData - 1
);
if (ImageContext->IsTeImage) {
Base = (CHAR8 *) ((UINTN) Base + sizeof (EFI_TE_IMAGE_HEADER) - (UINTN) TeHdr->StrippedSize);
|