summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Core
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-08-08 15:00:43 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-08-08 15:00:43 +0000
commit7a31af6a12e9586fc0d6bed972c00a0aafd728d8 (patch)
tree76331c2b6b012b68a387a22146fb8e8b9fbff10a /MdeModulePkg/Core
parent39a4d286523188429aec6ca9b09187fdc87f7a1f (diff)
downloadedk2-7a31af6a12e9586fc0d6bed972c00a0aafd728d8.zip
edk2-7a31af6a12e9586fc0d6bed972c00a0aafd728d8.tar.gz
edk2-7a31af6a12e9586fc0d6bed972c00a0aafd728d8.tar.bz2
Fix the type-cast between UINT32 & UINTN
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3575 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Core')
-rw-r--r--MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c b/MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c
index b86f273..70c71c6 100644
--- a/MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c
+++ b/MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c
@@ -262,7 +262,7 @@ Returns:
{
EFI_STATUS Status;
EFI_GUID **DecompressGuidList;
- UINT32 DecompressMethodNumber;
+ UINTN DecompressMethodNumber;
//
// Install SEP to a new handle
@@ -1474,6 +1474,7 @@ CustomDecompressExtractSection (
{
EFI_STATUS Status;
UINT8 *ScratchBuffer;
+ UINT32 DestinationSize;
UINT32 ScratchSize;
UINT32 SectionLength;
@@ -1492,7 +1493,7 @@ CustomDecompressExtractSection (
(GUID *) ((UINT8 *) InputSection + sizeof (EFI_COMMON_SECTION_HEADER)),
(UINT8 *) InputSection + sizeof (EFI_GUID_DEFINED_SECTION),
SectionLength - sizeof (EFI_GUID_DEFINED_SECTION),
- OutputSize,
+ &DestinationSize,
&ScratchSize
);
if (EFI_ERROR (Status)) {
@@ -1513,6 +1514,7 @@ CustomDecompressExtractSection (
//
// Allocate destination buffer
//
+ *OutputSize = (UINTN) DestinationSize;
*OutputBuffer = CoreAllocateBootServicesPool (*OutputSize);
if (*OutputBuffer == NULL) {
CoreFreePool (ScratchBuffer);