Fix Buger in this file to process the ffs file that only contain one compressed section.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@617 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
4276d5dacf
commit
2d10530b29
|
@ -50,10 +50,6 @@ Returns:
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
VOID *Pe32Data;
|
VOID *Pe32Data;
|
||||||
EFI_PEI_FV_FILE_LOADER_PPI *FvLoadFilePpi;
|
EFI_PEI_FV_FILE_LOADER_PPI *FvLoadFilePpi;
|
||||||
//#ifdef EFI_NT_EMULATOR
|
|
||||||
// EFI_PEI_PPI_DESCRIPTOR *PpiDescriptor;
|
|
||||||
// NT_PEI_LOAD_FILE_PPI *PeiNtService;
|
|
||||||
//#endif
|
|
||||||
EFI_PHYSICAL_ADDRESS ImageAddress;
|
EFI_PHYSICAL_ADDRESS ImageAddress;
|
||||||
UINT64 ImageSize;
|
UINT64 ImageSize;
|
||||||
EFI_PHYSICAL_ADDRESS ImageEntryPoint;
|
EFI_PHYSICAL_ADDRESS ImageEntryPoint;
|
||||||
|
@ -107,12 +103,10 @@ Returns:
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Retrieve the entry point from the PE/COFF image header
|
// Got the entry point from ImageEntryPoint
|
||||||
//
|
//
|
||||||
Status = PeCoffLoaderGetEntryPoint ((VOID *)(UINTN)ImageAddress, EntryPoint);
|
*EntryPoint = (VOID *) ((UINTN) ImageEntryPoint);
|
||||||
if (EFI_ERROR (Status)) {
|
return EFI_SUCCESS;
|
||||||
return EFI_NOT_FOUND;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
//
|
//
|
||||||
// Retrieve the entry point from the TE image header
|
// Retrieve the entry point from the TE image header
|
||||||
|
|
Loading…
Reference in New Issue