summaryrefslogtreecommitdiff
path: root/ShellPkg
diff options
context:
space:
mode:
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2011-04-04 16:11:07 +0000
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2011-04-04 16:11:07 +0000
commit4aa4377fdab7a01995b2f32e2a96c8340531cb6e (patch)
tree360434d11d3f02938db75b393d1c15d1fd7346d8 /ShellPkg
parent8a0b550b40fa7dc6c8bdb731eea688ab60594f49 (diff)
downloadedk2-platforms-4aa4377fdab7a01995b2f32e2a96c8340531cb6e.tar.xz
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
Diffstat (limited to 'ShellPkg')
-rw-r--r--ShellPkg/Library/UefiShellDebug1CommandsLib/EfiCompress.c6
1 files 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) {