Correct parameter UINTN to UINT32. Fix UINTN conver to UINT32
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 8 Aug 2007 15:21:50 +0000 (15:21 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 8 Aug 2007 15:21:50 +0000 (15:21 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3577 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c
MdeModulePkg/Core/DxeIplPeim/DxeLoad.c

index 70c71c6..de719f3 100644 (file)
@@ -262,7 +262,7 @@ Returns:
 {\r
   EFI_STATUS                         Status;\r
   EFI_GUID                           **DecompressGuidList;\r
 {\r
   EFI_STATUS                         Status;\r
   EFI_GUID                           **DecompressGuidList;\r
-  UINT                             DecompressMethodNumber;\r
+  UINT32                             DecompressMethodNumber;\r
 \r
   //\r
   // Install SEP to a new handle\r
 \r
   //\r
   // Install SEP to a new handle\r
index e7359e5..381d60c 100644 (file)
@@ -958,7 +958,8 @@ CustomDecompressExtractSection (
   EFI_STATUS      Status;\r
   UINT8           *ScratchBuffer;\r
   UINT32          ScratchSize;\r
   EFI_STATUS      Status;\r
   UINT8           *ScratchBuffer;\r
   UINT32          ScratchSize;\r
-  UINT32          SectionLength;  \r
+  UINT32          SectionLength;\r
+  UINT32          DestinationSize;  \r
   \r
   //\r
   // Set authentic value to zero.\r
   \r
   //\r
   // Set authentic value to zero.\r
@@ -975,7 +976,7 @@ CustomDecompressExtractSection (
              (GUID *) ((UINT8 *) InputSection + sizeof (EFI_COMMON_SECTION_HEADER)),\r
              (UINT8 *) InputSection + sizeof (EFI_GUID_DEFINED_SECTION),\r
              SectionLength - sizeof (EFI_GUID_DEFINED_SECTION),\r
              (GUID *) ((UINT8 *) InputSection + sizeof (EFI_COMMON_SECTION_HEADER)),\r
              (UINT8 *) InputSection + sizeof (EFI_GUID_DEFINED_SECTION),\r
              SectionLength - sizeof (EFI_GUID_DEFINED_SECTION),\r
-             OutputSize,\r
+             &DestinationSize,\r
              &ScratchSize\r
              );\r
   if (EFI_ERROR (Status)) {\r
              &ScratchSize\r
              );\r
   if (EFI_ERROR (Status)) {\r
@@ -996,6 +997,7 @@ CustomDecompressExtractSection (
   //\r
   // Allocate destination buffer\r
   //\r
   //\r
   // Allocate destination buffer\r
   //\r
+  *OutputSize   = (UINTN) DestinationSize;\r
   *OutputBuffer = AllocatePages (EFI_SIZE_TO_PAGES (*OutputSize));\r
   if (*OutputBuffer == NULL) {\r
     return EFI_OUT_OF_RESOURCES;\r
   *OutputBuffer = AllocatePages (EFI_SIZE_TO_PAGES (*OutputSize));\r
   if (*OutputBuffer == NULL) {\r
     return EFI_OUT_OF_RESOURCES;\r