From: lgao4 Date: Fri, 28 Jul 2006 06:08:00 +0000 (+0000) Subject: TeImage Signature should be got from Te pointer, not Pe pointer X-Git-Tag: edk2-stable201903~24736 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=c941b270ea76d206e57b20a86359bddd6ce67ef3 TeImage Signature should be got from Te pointer, not Pe pointer git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1136 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/MdePkg/Library/BasePeCoffLib/BasePeCoff.c b/MdePkg/Library/BasePeCoffLib/BasePeCoff.c index 6d36b6dff0..ebc3b3cc6c 100644 --- a/MdePkg/Library/BasePeCoffLib/BasePeCoff.c +++ b/MdePkg/Library/BasePeCoffLib/BasePeCoff.c @@ -144,7 +144,7 @@ PeCoffLoaderGetPeHeader ( // // Use Signature to figure out if we understand the image format // - if (Hdr.Pe32->Signature == EFI_TE_IMAGE_HEADER_SIGNATURE) { + if (Hdr.Te->Signature == EFI_TE_IMAGE_HEADER_SIGNATURE) { ImageContext->IsTeImage = TRUE; ImageContext->Machine = Hdr.Te->Machine; ImageContext->ImageType = (UINT16)(Hdr.Te->Subsystem);