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
This commit is contained in:
lgao4 2006-07-28 06:08:00 +00:00
parent 0c235b66d2
commit c941b270ea
1 changed files with 1 additions and 1 deletions

View File

@ -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);