summaryrefslogtreecommitdiff
path: root/edk2/ShellPkg
diff options
context:
space:
mode:
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2011-06-27 20:27:29 +0000
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2011-06-27 20:27:29 +0000
commite1a683fe941504106c337bfdbfccd23965fea9c9 (patch)
tree607583d6da8fb3593d37798304a1aaaf15b39796 /edk2/ShellPkg
parent15ca61b8b0491c88643125c4e07d537e48044119 (diff)
Make sure size is correct.
signed-off-by: jcarsey reviewed-by: lgrosenb git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@11896 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'edk2/ShellPkg')
-rw-r--r--edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/EfiCompress.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/EfiCompress.c b/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/EfiCompress.c
index 3dbf68e5a..d4bb6217b 100644
--- a/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/EfiCompress.c
+++ b/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/EfiCompress.c
@@ -113,6 +113,7 @@ 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);