]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellDebug1CommandsLib/EfiCompress.c
correct last commit. fix build break for some compilers.
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / EfiCompress.c
index fdde8d1809587acb272ea717b2651c4534f198fa..3dbf68e5a9f94ee9825d353b899cede22480597c 100644 (file)
@@ -35,10 +35,10 @@ ShellCommandRunEfiCompress (
   SHELL_FILE_HANDLE   InShellFileHandle;\r
   SHELL_FILE_HANDLE   OutShellFileHandle;\r
   UINT64              OutSize;\r
-  UINT64              OutSize2;\r
+  UINT              OutSize2;\r
   VOID                *OutBuffer;\r
   UINT64              InSize;\r
-  UINT64              InSize2;\r
+  UINT              InSize2;\r
   VOID                *InBuffer;\r
   CHAR16              *InFileName;\r
   CONST CHAR16        *OutFileName;\r
@@ -113,8 +113,8 @@ 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
           Status = Compress(InBuffer, InSize, OutBuffer, &OutSize);\r
           if (Status == EFI_BUFFER_TOO_SMALL) {\r