mirror of https://github.com/acidanthera/audk.git
Add temporary fix for PeLoader
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1113 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
1dbcbb6158
commit
5b18234d98
|
@ -147,6 +147,8 @@ Returns:
|
||||||
EFI_IMAGE_OPTIONAL_HEADER_PTR_UNION Hdr;
|
EFI_IMAGE_OPTIONAL_HEADER_PTR_UNION Hdr;
|
||||||
UINT32 NumberOfRvaAndSizes;
|
UINT32 NumberOfRvaAndSizes;
|
||||||
|
|
||||||
|
Hdr.Pe32 = NULL;
|
||||||
|
if (TEImageHeader == NULL) {
|
||||||
DosHeader = (EFI_IMAGE_DOS_HEADER *)Pe32Data;
|
DosHeader = (EFI_IMAGE_DOS_HEADER *)Pe32Data;
|
||||||
if (DosHeader->e_magic == EFI_IMAGE_DOS_SIGNATURE) {
|
if (DosHeader->e_magic == EFI_IMAGE_DOS_SIGNATURE) {
|
||||||
//
|
//
|
||||||
|
@ -159,6 +161,7 @@ Returns:
|
||||||
//
|
//
|
||||||
Hdr.Pe32 = (EFI_IMAGE_NT_HEADERS32 *)Pe32Data;
|
Hdr.Pe32 = (EFI_IMAGE_NT_HEADERS32 *)Pe32Data;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Find the codeview info in the image and display the file name
|
// Find the codeview info in the image and display the file name
|
||||||
|
|
Loading…
Reference in New Issue