mirror of https://github.com/acidanthera/audk.git
Make sure size is correct.
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
This commit is contained in:
parent
f70c2a1234
commit
03131de30e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue