mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
8a0b550b40
commit
4aa4377fda
|
@ -35,10 +35,10 @@ ShellCommandRunEfiCompress (
|
||||||
SHELL_FILE_HANDLE InShellFileHandle;
|
SHELL_FILE_HANDLE InShellFileHandle;
|
||||||
SHELL_FILE_HANDLE OutShellFileHandle;
|
SHELL_FILE_HANDLE OutShellFileHandle;
|
||||||
UINT64 OutSize;
|
UINT64 OutSize;
|
||||||
UINT64 OutSize2;
|
UINTN OutSize2;
|
||||||
VOID *OutBuffer;
|
VOID *OutBuffer;
|
||||||
UINT64 InSize;
|
UINT64 InSize;
|
||||||
UINT64 InSize2;
|
UINTN InSize2;
|
||||||
VOID *InBuffer;
|
VOID *InBuffer;
|
||||||
CHAR16 *InFileName;
|
CHAR16 *InFileName;
|
||||||
CONST CHAR16 *OutFileName;
|
CONST CHAR16 *OutFileName;
|
||||||
|
@ -113,8 +113,8 @@ ShellCommandRunEfiCompress (
|
||||||
ASSERT_EFI_ERROR(Status);
|
ASSERT_EFI_ERROR(Status);
|
||||||
InBuffer = AllocateZeroPool((UINTN)InSize);
|
InBuffer = AllocateZeroPool((UINTN)InSize);
|
||||||
ASSERT(InBuffer != NULL);
|
ASSERT(InBuffer != NULL);
|
||||||
InSize2 = (UINTN)InSize;
|
|
||||||
Status = gEfiShellProtocol->ReadFile(InShellFileHandle, &InSize2, InBuffer);
|
Status = gEfiShellProtocol->ReadFile(InShellFileHandle, &InSize2, InBuffer);
|
||||||
|
InSize = InSize2;
|
||||||
ASSERT_EFI_ERROR(Status);
|
ASSERT_EFI_ERROR(Status);
|
||||||
Status = Compress(InBuffer, InSize, OutBuffer, &OutSize);
|
Status = Compress(InBuffer, InSize, OutBuffer, &OutSize);
|
||||||
if (Status == EFI_BUFFER_TOO_SMALL) {
|
if (Status == EFI_BUFFER_TOO_SMALL) {
|
||||||
|
|
Loading…
Reference in New Issue