TeImage Signature should be got from Te pointer, not Pe pointer
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 28 Jul 2006 06:08:00 +0000 (06:08 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 28 Jul 2006 06:08:00 +0000 (06:08 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1136 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/BasePeCoffLib/BasePeCoff.c

index 6d36b6d..ebc3b3c 100644 (file)
@@ -144,7 +144,7 @@ PeCoffLoaderGetPeHeader (
   //\r
   // Use Signature to figure out if we understand the image format\r
   //\r
-  if (Hdr.Pe32->Signature == EFI_TE_IMAGE_HEADER_SIGNATURE) {\r
+  if (Hdr.Te->Signature == EFI_TE_IMAGE_HEADER_SIGNATURE) {\r
     ImageContext->IsTeImage         = TRUE;\r
     ImageContext->Machine           = Hdr.Te->Machine;\r
     ImageContext->ImageType         = (UINT16)(Hdr.Te->Subsystem);\r