{\r
EFI_STATUS Status;\r
EFI_GUID **DecompressGuidList;\r
- UINT32 DecompressMethodNumber;\r
+ UINTN DecompressMethodNumber;\r
\r
//\r
// Install SEP to a new handle\r
{\r
EFI_STATUS Status;\r
UINT8 *ScratchBuffer;\r
+ UINT32 DestinationSize;\r
UINT32 ScratchSize;\r
UINT32 SectionLength; \r
\r
(GUID *) ((UINT8 *) InputSection + sizeof (EFI_COMMON_SECTION_HEADER)),\r
(UINT8 *) InputSection + sizeof (EFI_GUID_DEFINED_SECTION),\r
SectionLength - sizeof (EFI_GUID_DEFINED_SECTION),\r
- OutputSize,\r
+ &DestinationSize,\r
&ScratchSize\r
);\r
if (EFI_ERROR (Status)) {\r
//\r
// Allocate destination buffer\r
//\r
+ *OutputSize = (UINTN) DestinationSize;\r
*OutputBuffer = CoreAllocateBootServicesPool (*OutputSize);\r
if (*OutputBuffer == NULL) {\r
CoreFreePool (ScratchBuffer);\r