]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Make sure size is correct.
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 27 Jun 2011 20:27:29 +0000 (20:27 +0000)
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 27 Jun 2011 20:27:29 +0000 (20:27 +0000)
signed-off-by: jcarsey
reviewed-by: lgrosenb

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11896 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Library/UefiShellDebug1CommandsLib/EfiCompress.c

index 3dbf68e5a9f94ee9825d353b899cede22480597c..d4bb6217b0fa3c30c3132efa0cae666d2ebd43a3 100644 (file)
@@ -113,6 +113,7 @@ ShellCommandRunEfiCompress (
           ASSERT_EFI_ERROR(Status);\r
           InBuffer = AllocateZeroPool((UINTN)InSize);\r
           ASSERT(InBuffer != NULL);\r
+          InSize2 = (UINTN)InSize;\r
           Status = gEfiShellProtocol->ReadFile(InShellFileHandle, &InSize2, InBuffer);\r
           InSize = InSize2;\r
           ASSERT_EFI_ERROR(Status);\r