From c941b270ea76d206e57b20a86359bddd6ce67ef3 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Fri, 28 Jul 2006 06:08:00 +0000 Subject: 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 --- MdePkg/Library/BasePeCoffLib/BasePeCoff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MdePkg/Library/BasePeCoffLib/BasePeCoff.c') 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); -- cgit v1.2.3