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
This commit is contained in:
@ -262,7 +262,7 @@ Returns:
|
|||||||
{
|
{
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
EFI_GUID **DecompressGuidList;
|
EFI_GUID **DecompressGuidList;
|
||||||
UINT32 DecompressMethodNumber;
|
UINTN DecompressMethodNumber;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Install SEP to a new handle
|
// Install SEP to a new handle
|
||||||
@ -1474,6 +1474,7 @@ CustomDecompressExtractSection (
|
|||||||
{
|
{
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
UINT8 *ScratchBuffer;
|
UINT8 *ScratchBuffer;
|
||||||
|
UINT32 DestinationSize;
|
||||||
UINT32 ScratchSize;
|
UINT32 ScratchSize;
|
||||||
UINT32 SectionLength;
|
UINT32 SectionLength;
|
||||||
|
|
||||||
@ -1492,7 +1493,7 @@ CustomDecompressExtractSection (
|
|||||||
(GUID *) ((UINT8 *) InputSection + sizeof (EFI_COMMON_SECTION_HEADER)),
|
(GUID *) ((UINT8 *) InputSection + sizeof (EFI_COMMON_SECTION_HEADER)),
|
||||||
(UINT8 *) InputSection + sizeof (EFI_GUID_DEFINED_SECTION),
|
(UINT8 *) InputSection + sizeof (EFI_GUID_DEFINED_SECTION),
|
||||||
SectionLength - sizeof (EFI_GUID_DEFINED_SECTION),
|
SectionLength - sizeof (EFI_GUID_DEFINED_SECTION),
|
||||||
OutputSize,
|
&DestinationSize,
|
||||||
&ScratchSize
|
&ScratchSize
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
@ -1513,6 +1514,7 @@ CustomDecompressExtractSection (
|
|||||||
//
|
//
|
||||||
// Allocate destination buffer
|
// Allocate destination buffer
|
||||||
//
|
//
|
||||||
|
*OutputSize = (UINTN) DestinationSize;
|
||||||
*OutputBuffer = CoreAllocateBootServicesPool (*OutputSize);
|
*OutputBuffer = CoreAllocateBootServicesPool (*OutputSize);
|
||||||
if (*OutputBuffer == NULL) {
|
if (*OutputBuffer == NULL) {
|
||||||
CoreFreePool (ScratchBuffer);
|
CoreFreePool (ScratchBuffer);
|
||||||
|
Reference in New Issue
Block a user