summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Core
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2007-08-08 15:21:50 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2007-08-08 15:21:50 +0000
commit88ce0209fc1f4dd183c52095d2c186f31633bad5 (patch)
treec4f123e449c80c9e6fbedd0add120a63007319eb /MdeModulePkg/Core
parent98a1fa1f349476533c626020a7196f08c1ef2dba (diff)
downloadedk2-88ce0209fc1f4dd183c52095d2c186f31633bad5.zip
edk2-88ce0209fc1f4dd183c52095d2c186f31633bad5.tar.gz
edk2-88ce0209fc1f4dd183c52095d2c186f31633bad5.tar.bz2
Correct parameter UINTN to UINT32. Fix UINTN conver to UINT32
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3577 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Core')
-rw-r--r--MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c2
-rw-r--r--MdeModulePkg/Core/DxeIplPeim/DxeLoad.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c b/MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c
index 70c71c6..de719f3 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;
- UINTN DecompressMethodNumber;
+ UINT32 DecompressMethodNumber;
//
// Install SEP to a new handle
diff --git a/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c b/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c
index e7359e5..381d60c 100644
--- a/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c
+++ b/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c
@@ -958,7 +958,8 @@ CustomDecompressExtractSection (
EFI_STATUS Status;
UINT8 *ScratchBuffer;
UINT32 ScratchSize;
- UINT32 SectionLength;
+ UINT32 SectionLength;
+ UINT32 DestinationSize;
//
// Set authentic value to zero.
@@ -975,7 +976,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)) {
@@ -996,6 +997,7 @@ CustomDecompressExtractSection (
//
// Allocate destination buffer
//
+ *OutputSize = (UINTN) DestinationSize;
*OutputBuffer = AllocatePages (EFI_SIZE_TO_PAGES (*OutputSize));
if (*OutputBuffer == NULL) {
return EFI_OUT_OF_RESOURCES;