]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix Buger in this file to process the ffs file that only contain one compressed section.
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 23 Jun 2006 14:45:44 +0000 (14:45 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 23 Jun 2006 14:45:44 +0000 (14:45 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@617 6f19259b-4bc3-4df7-8a09-765794883524

EdkModulePkg/Core/Pei/Image/Image.c

index 8fd71976366866da68bab0ca0490f6313dc326cc..5edc8479eb04ca4aadd31c43ca684952f07a8a88 100644 (file)
@@ -50,10 +50,6 @@ Returns:
   EFI_STATUS                  Status;\r
   VOID                        *Pe32Data;\r
   EFI_PEI_FV_FILE_LOADER_PPI  *FvLoadFilePpi;\r
   EFI_STATUS                  Status;\r
   VOID                        *Pe32Data;\r
   EFI_PEI_FV_FILE_LOADER_PPI  *FvLoadFilePpi;\r
-//#ifdef EFI_NT_EMULATOR\r
-//  EFI_PEI_PPI_DESCRIPTOR      *PpiDescriptor;\r
-//  NT_PEI_LOAD_FILE_PPI        *PeiNtService;\r
-//#endif\r
   EFI_PHYSICAL_ADDRESS        ImageAddress;\r
   UINT64                      ImageSize;\r
   EFI_PHYSICAL_ADDRESS        ImageEntryPoint;\r
   EFI_PHYSICAL_ADDRESS        ImageAddress;\r
   UINT64                      ImageSize;\r
   EFI_PHYSICAL_ADDRESS        ImageEntryPoint;\r
@@ -107,12 +103,10 @@ Returns:
       }\r
 \r
       //\r
       }\r
 \r
       //\r
-      // Retrieve the entry point from the PE/COFF image header\r
+      // Got the entry point from ImageEntryPoint\r
       //\r
       //\r
-      Status = PeCoffLoaderGetEntryPoint ((VOID *)(UINTN)ImageAddress, EntryPoint);\r
-      if (EFI_ERROR (Status)) {\r
-        return EFI_NOT_FOUND;\r
-      }\r
+      *EntryPoint = (VOID *) ((UINTN) ImageEntryPoint);\r
+      return EFI_SUCCESS;\r
     } else {\r
       //\r
       // Retrieve the entry point from the TE image header\r
     } else {\r
       //\r
       // Retrieve the entry point from the TE image header\r