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
This commit is contained in:
lgao4 2007-08-08 15:21:50 +00:00
parent 98a1fa1f34
commit 88ce0209fc
2 changed files with 5 additions and 3 deletions

View File

@ -262,7 +262,7 @@ Returns:
{
EFI_STATUS Status;
EFI_GUID **DecompressGuidList;
UINTN DecompressMethodNumber;
UINT32 DecompressMethodNumber;
//
// Install SEP to a new handle

View File

@ -959,6 +959,7 @@ CustomDecompressExtractSection (
UINT8 *ScratchBuffer;
UINT32 ScratchSize;
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;