]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Correct parameter UINTN to UINT32. Fix UINTN conver to UINT32
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 8 Aug 2007 15:43:06 +0000 (15:43 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 8 Aug 2007 15:43:06 +0000 (15:43 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3580 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Core/DxeIplPeim/DxeLoad.c

index 12dd583d38dc7d46ad913daaf63070ac6daa12cf..901b061973965052b64f332de182b40dadeb16a1 100644 (file)
@@ -647,7 +647,7 @@ Returns:
   EFI_STATUS                      Status;\r
   UINT8                           *DstBuffer;\r
   UINT8                           *ScratchBuffer;\r
-  UINT32                          DstBufferSize;\r
+  UINT                          DstBufferSize;\r
   UINT32                          ScratchBufferSize;\r
   EFI_COMMON_SECTION_HEADER       *CmpSection;\r
   UINTN                           CmpSectionLength;\r
@@ -728,7 +728,7 @@ Returns:
                                 SectionExtract,\r
                                 (VOID *) Section,\r
                                 (VOID **) &DstBuffer,\r
-                                (UINTN *) &DstBufferSize,\r
+                                &DstBufferSize,\r
                                 &AuthenticationStatus\r
                                 );\r
 \r
@@ -736,6 +736,7 @@ Returns:
         DEBUG ((EFI_D_ERROR, "Extract section content failed - %r\n", Status));\r
         return Status;\r
       }\r
+      \r
       //\r
       // Todo check AuthenticationStatus and do the verify\r
       //\r
@@ -754,7 +755,7 @@ Returns:
         Status = UefiDecompressGetInfo (\r
                    (UINT8 *) ((EFI_COMPRESSION_SECTION *) Section + 1),\r
                    (UINT32) SectionLength - sizeof (EFI_COMPRESSION_SECTION),\r
-                   &DstBufferSize,\r
+                   (UINT32 *) &DstBufferSize,\r
                    &ScratchBufferSize\r
                    );\r
         if (EFI_ERROR (Status)) {\r