From 4aa4377fdab7a01995b2f32e2a96c8340531cb6e Mon Sep 17 00:00:00 2001 From: jcarsey Date: Mon, 4 Apr 2011 16:11:07 +0000 Subject: [PATCH] correct last commit. fix build break for some compilers. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11502 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Library/UefiShellDebug1CommandsLib/EfiCompress.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/EfiCompress.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/EfiCompress.c index fdde8d1809..3dbf68e5a9 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/EfiCompress.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/EfiCompress.c @@ -35,10 +35,10 @@ ShellCommandRunEfiCompress ( SHELL_FILE_HANDLE InShellFileHandle; SHELL_FILE_HANDLE OutShellFileHandle; UINT64 OutSize; - UINT64 OutSize2; + UINTN OutSize2; VOID *OutBuffer; UINT64 InSize; - UINT64 InSize2; + UINTN InSize2; VOID *InBuffer; CHAR16 *InFileName; CONST CHAR16 *OutFileName; @@ -113,8 +113,8 @@ ShellCommandRunEfiCompress ( ASSERT_EFI_ERROR(Status); InBuffer = AllocateZeroPool((UINTN)InSize); ASSERT(InBuffer != NULL); - InSize2 = (UINTN)InSize; Status = gEfiShellProtocol->ReadFile(InShellFileHandle, &InSize2, InBuffer); + InSize = InSize2; ASSERT_EFI_ERROR(Status); Status = Compress(InBuffer, InSize, OutBuffer, &OutSize); if (Status == EFI_BUFFER_TOO_SMALL) { -- 2.39.2