diff options
author | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-04-04 16:05:53 +0000 |
---|---|---|
committer | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-04-04 16:05:53 +0000 |
commit | 8a0b550b40fa7dc6c8bdb731eea688ab60594f49 (patch) | |
tree | d7b60956f3d0951e432924cd27bb0a67c72b8458 | |
parent | f2ad804f8bcfb961bce7a195374d7b797c5f017a (diff) | |
download | edk2-8a0b550b40fa7dc6c8bdb731eea688ab60594f49.zip edk2-8a0b550b40fa7dc6c8bdb731eea688ab60594f49.tar.gz edk2-8a0b550b40fa7dc6c8bdb731eea688ab60594f49.tar.bz2 |
fix build break on some compilers.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11501 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | ShellPkg/Library/UefiShellDebug1CommandsLib/EfiCompress.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/EfiCompress.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/EfiCompress.c index 3f27d1a..fdde8d1 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/EfiCompress.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/EfiCompress.c @@ -35,8 +35,10 @@ ShellCommandRunEfiCompress ( SHELL_FILE_HANDLE InShellFileHandle;
SHELL_FILE_HANDLE OutShellFileHandle;
UINT64 OutSize;
+ UINT64 OutSize2;
VOID *OutBuffer;
UINT64 InSize;
+ UINT64 InSize2;
VOID *InBuffer;
CHAR16 *InFileName;
CONST CHAR16 *OutFileName;
@@ -111,7 +113,8 @@ ShellCommandRunEfiCompress ( ASSERT_EFI_ERROR(Status);
InBuffer = AllocateZeroPool((UINTN)InSize);
ASSERT(InBuffer != NULL);
- Status = gEfiShellProtocol->ReadFile(InShellFileHandle, &((UINTN)InSize), InBuffer);
+ InSize2 = (UINTN)InSize;
+ Status = gEfiShellProtocol->ReadFile(InShellFileHandle, &InSize2, InBuffer);
ASSERT_EFI_ERROR(Status);
Status = Compress(InBuffer, InSize, OutBuffer, &OutSize);
if (Status == EFI_BUFFER_TOO_SMALL) {
@@ -123,7 +126,8 @@ ShellCommandRunEfiCompress ( ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_EFI_COMPRESS_FAIL), gShellDebug1HiiHandle, Status);
ShellStatus = SHELL_DEVICE_ERROR;
} else {
- Status = gEfiShellProtocol->WriteFile(OutShellFileHandle, &((UINTN)OutSize), OutBuffer);
+ OutSize2 = (UINTN)OutSize;
+ Status = gEfiShellProtocol->WriteFile(OutShellFileHandle, &OutSize2, OutBuffer);
if (EFI_ERROR(Status)) {
ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_WRITE_FAIL), gShellDebug1HiiHandle, OutFileName, Status);
ShellStatus = SHELL_DEVICE_ERROR;
|