mirror of https://github.com/acidanthera/audk.git
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:
parent
0c235b66d2
commit
c941b270ea
|
@ -144,7 +144,7 @@ PeCoffLoaderGetPeHeader (
|
||||||
//
|
//
|
||||||
// Use Signature to figure out if we understand the image format
|
// 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->IsTeImage = TRUE;
|
||||||
ImageContext->Machine = Hdr.Te->Machine;
|
ImageContext->Machine = Hdr.Te->Machine;
|
||||||
ImageContext->ImageType = (UINT16)(Hdr.Te->Subsystem);
|
ImageContext->ImageType = (UINT16)(Hdr.Te->Subsystem);
|
||||||
|
|
Loading…
Reference in New Issue