mirror of https://github.com/acidanthera/audk.git
Fix build break
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9677 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
141815f3c7
commit
76bc52ed4f
|
@ -182,17 +182,18 @@ LzmaUefiDecompress (
|
||||||
IN OUT VOID *Scratch
|
IN OUT VOID *Scratch
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
SRes LzmaResult;
|
SRes LzmaResult;
|
||||||
ELzmaStatus Status;
|
ELzmaStatus Status;
|
||||||
SizeT DecodedBufSize;
|
SizeT DecodedBufSize;
|
||||||
SizeT EncodedDataSize;
|
SizeT EncodedDataSize;
|
||||||
ISzAllocWithData AllocFuncs = {
|
ISzAllocWithData AllocFuncs;
|
||||||
{ SzAlloc, SzFree },
|
|
||||||
Scratch,
|
|
||||||
SCRATCH_BUFFER_REQUEST_SIZE
|
|
||||||
};
|
|
||||||
|
|
||||||
DecodedBufSize = GetDecodedSizeOfBuf((UINT8*)Source);
|
AllocFuncs.Functions.Alloc = SzAlloc;
|
||||||
|
AllocFuncs.Functions.Free = SzFree;
|
||||||
|
AllocFuncs.Buffer = Scratch;
|
||||||
|
AllocFuncs.BufferSize = SCRATCH_BUFFER_REQUEST_SIZE;
|
||||||
|
|
||||||
|
DecodedBufSize = (SizeT)GetDecodedSizeOfBuf((UINT8*)Source);
|
||||||
EncodedDataSize = (SizeT) (SourceSize - LZMA_HEADER_SIZE);
|
EncodedDataSize = (SizeT) (SourceSize - LZMA_HEADER_SIZE);
|
||||||
|
|
||||||
LzmaResult = LzmaDecode(
|
LzmaResult = LzmaDecode(
|
||||||
|
@ -204,7 +205,7 @@ LzmaUefiDecompress (
|
||||||
LZMA_PROPS_SIZE,
|
LZMA_PROPS_SIZE,
|
||||||
LZMA_FINISH_END,
|
LZMA_FINISH_END,
|
||||||
&Status,
|
&Status,
|
||||||
(ISzAlloc*) &AllocFuncs
|
&(AllocFuncs.Functions)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (LzmaResult == SZ_OK) {
|
if (LzmaResult == SZ_OK) {
|
||||||
|
|
Loading…
Reference in New Issue