mirror of https://github.com/acidanthera/audk.git
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:
parent
4024517599
commit
75a635ace8
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
LZMA Decompress interfaces
|
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
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -41,7 +41,9 @@ SzAlloc (
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
VOID *Addr;
|
VOID *Addr;
|
||||||
ISzAllocWithData *Private = (ISzAllocWithData*) P;
|
ISzAllocWithData *Private;
|
||||||
|
|
||||||
|
Private = (ISzAllocWithData*) P;
|
||||||
|
|
||||||
if (Private->BufferSize >= Size) {
|
if (Private->BufferSize >= Size) {
|
||||||
Addr = Private->Buffer;
|
Addr = Private->Buffer;
|
||||||
|
@ -162,6 +164,7 @@ LzmaUefiDecompressGetInfo (
|
||||||
then RETURN_INVALID_PARAMETER is returned.
|
then RETURN_INVALID_PARAMETER is returned.
|
||||||
|
|
||||||
@param Source The source buffer containing the compressed data.
|
@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 Destination The destination buffer to store the decompressed data
|
||||||
@param Scratch A temporary scratch buffer that is used to perform the decompression.
|
@param Scratch A temporary scratch buffer that is used to perform the decompression.
|
||||||
This is an optional parameter that may be NULL if the
|
This is an optional parameter that may be NULL if the
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
LZMA Decompress Library internal header file declares Lzma decompress interfaces.
|
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
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
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.
|
then RETURN_INVALID_PARAMETER is returned.
|
||||||
|
|
||||||
@param Source The source buffer containing the compressed data.
|
@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 Destination The destination buffer to store the decompressed data
|
||||||
@param Scratch A temporary scratch buffer that is used to perform the decompression.
|
@param Scratch A temporary scratch buffer that is used to perform the decompression.
|
||||||
This is an optional parameter that may be NULL if the
|
This is an optional parameter that may be NULL if the
|
||||||
|
|
Loading…
Reference in New Issue