summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MdeModulePkg/Core/DxeIplPeim/DxeLoad.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c b/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c
index 901b061973..7ec7d52039 100644
--- a/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c
+++ b/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c
@@ -593,15 +593,23 @@ Returns:
// Preprocess the FFS file to get a pointer to the PE32 information
// in the enclosed PE32 image.
//
- Status = PeiProcessFile (
- EFI_SECTION_PE32,
+ Status = PeiProcessFile (
+ EFI_SECTION_TE,
FfsHeader,
&Pe32Data,
NULL
);
-
if (EFI_ERROR (Status)) {
- return Status;
+ Status = PeiProcessFile (
+ EFI_SECTION_PE32,
+ FfsHeader,
+ &Pe32Data,
+ NULL
+ );
+
+ if (EFI_ERROR (Status)) {
+ return Status;
+ }
}
//
// Load the PE image from the FFS file