Minor code enhancement.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9684 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
xli24 2010-01-07 09:08:58 +00:00
parent 4024517599
commit 75a635ace8
2 changed files with 7 additions and 3 deletions

View File

@ -1,7 +1,7 @@
/** @file
LZMA Decompress interfaces
Copyright (c) 2009, Intel Corporation<BR>
Copyright (c) 2009 - 2010, Intel Corporation<BR>
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@ -41,7 +41,9 @@ SzAlloc (
)
{
VOID *Addr;
ISzAllocWithData *Private = (ISzAllocWithData*) P;
ISzAllocWithData *Private;
Private = (ISzAllocWithData*) P;
if (Private->BufferSize >= Size) {
Addr = Private->Buffer;
@ -162,6 +164,7 @@ LzmaUefiDecompressGetInfo (
then RETURN_INVALID_PARAMETER is returned.
@param Source The source buffer containing the compressed data.
@param SourceSize The size of source buffer.
@param Destination The destination buffer to store the decompressed data
@param Scratch A temporary scratch buffer that is used to perform the decompression.
This is an optional parameter that may be NULL if the

View File

@ -1,7 +1,7 @@
/** @file
LZMA Decompress Library internal header file declares Lzma decompress interfaces.
Copyright (c) 2009, Intel Corporation<BR>
Copyright (c) 2009 - 2010, Intel Corporation<BR>
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@ -71,6 +71,7 @@ LzmaUefiDecompressGetInfo (
then RETURN_INVALID_PARAMETER is returned.
@param Source The source buffer containing the compressed data.
@param SourceSize The size of source buffer.
@param Destination The destination buffer to store the decompressed data
@param Scratch A temporary scratch buffer that is used to perform the decompression.
This is an optional parameter that may be NULL if the