From: xli24 Date: Thu, 7 Jan 2010 09:08:58 +0000 (+0000) Subject: Minor code enhancement. X-Git-Tag: edk2-stable201903~16640 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=75a635ace809cfcf9556d15d3ff0ed0ce8314885 Minor code enhancement. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9684 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaDecompress.c b/IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaDecompress.c index 5c89d9870f..97ca8e68f7 100644 --- a/IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaDecompress.c +++ b/IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaDecompress.c @@ -1,7 +1,7 @@ /** @file LZMA Decompress interfaces - Copyright (c) 2009, Intel Corporation
+ Copyright (c) 2009 - 2010, Intel Corporation
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 diff --git a/IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaDecompressLibInternal.h b/IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaDecompressLibInternal.h index 2db60fb19c..7c522f49a5 100644 --- a/IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaDecompressLibInternal.h +++ b/IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaDecompressLibInternal.h @@ -1,7 +1,7 @@ /** @file LZMA Decompress Library internal header file declares Lzma decompress interfaces. - Copyright (c) 2009, Intel Corporation
+ Copyright (c) 2009 - 2010, Intel Corporation
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