]> git.proxmox.com Git - mirror_edk2.git/commitdiff
EmbeddedPkg/PrePiLib: Fixed incorrect type casting
authorAndrew Fish <afish@apple.com>
Mon, 24 Feb 2014 10:30:48 +0000 (10:30 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 24 Feb 2014 10:30:48 +0000 (10:30 +0000)
A pointer on a UINTN variable was used instead of UINT32 one.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Andrew Fish <afish@apple.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15252 6f19259b-4bc3-4df7-8a09-765794883524

EmbeddedPkg/Library/PrePiLib/FwVol.c

index 9e4cdd002ec6143df77120186e95aa732d8ee225..0dec29efe9e6e7c2457aebba191f8f7647b214e5 100644 (file)
@@ -293,7 +293,7 @@ FfsProcessSection (
   UINT32                                  SectionLength;\r
   UINT32                                  ParsedLength;\r
   EFI_COMPRESSION_SECTION                 *CompressionSection;\r
   UINT32                                  SectionLength;\r
   UINT32                                  ParsedLength;\r
   EFI_COMPRESSION_SECTION                 *CompressionSection;\r
-  UINT                                  DstBufferSize;\r
+  UINT32                                  DstBufferSize;\r
   VOID                                    *ScratchBuffer;\r
   UINT32                                  ScratchBufferSize;\r
   VOID                                    *DstBuffer;\r
   VOID                                    *ScratchBuffer;\r
   UINT32                                  ScratchBufferSize;\r
   VOID                                    *DstBuffer;\r
@@ -322,13 +322,13 @@ FfsProcessSection (
         Status = UefiDecompressGetInfo (\r
                    (UINT8 *) ((EFI_COMPRESSION_SECTION *) Section + 1),\r
                    (UINT32) SectionLength - sizeof (EFI_COMPRESSION_SECTION),\r
         Status = UefiDecompressGetInfo (\r
                    (UINT8 *) ((EFI_COMPRESSION_SECTION *) Section + 1),\r
                    (UINT32) SectionLength - sizeof (EFI_COMPRESSION_SECTION),\r
-                   (UINT32 *) &DstBufferSize,\r
+                   &DstBufferSize,\r
                    &ScratchBufferSize\r
                    );\r
       } else if (Section->Type == EFI_SECTION_GUID_DEFINED) {\r
         Status = ExtractGuidedSectionGetInfo (\r
                    Section,\r
                    &ScratchBufferSize\r
                    );\r
       } else if (Section->Type == EFI_SECTION_GUID_DEFINED) {\r
         Status = ExtractGuidedSectionGetInfo (\r
                    Section,\r
-                   (UINT32 *) &DstBufferSize,\r
+                   &DstBufferSize,\r
                    &ScratchBufferSize,\r
                    &SectionAttribute\r
                    );\r
                    &ScratchBufferSize,\r
                    &SectionAttribute\r
                    );\r