summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib
diff options
context:
space:
mode:
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2010-01-05 00:09:32 +0000
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2010-01-05 00:09:32 +0000
commit76bc52ed4f98749ea0b22ede9401a6f32c0adfe3 (patch)
tree7c5c007a29aae1674278e110ca3dc28478009d2d /IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib
parent141815f3c71f5a3d21a4e34aa1386d28fe63923c (diff)
downloadedk2-platforms-76bc52ed4f98749ea0b22ede9401a6f32c0adfe3.tar.xz
Fix build break
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9677 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib')
-rw-r--r--IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaDecompress.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaDecompress.c b/IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaDecompress.c
index dd08008258..5c89d9870f 100644
--- a/IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaDecompress.c
+++ b/IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaDecompress.c
@@ -182,17 +182,18 @@ LzmaUefiDecompress (
IN OUT VOID *Scratch
)
{
- SRes LzmaResult;
- ELzmaStatus Status;
- SizeT DecodedBufSize;
- SizeT EncodedDataSize;
- ISzAllocWithData AllocFuncs = {
- { SzAlloc, SzFree },
- Scratch,
- SCRATCH_BUFFER_REQUEST_SIZE
- };
-
- DecodedBufSize = GetDecodedSizeOfBuf((UINT8*)Source);
+ SRes LzmaResult;
+ ELzmaStatus Status;
+ SizeT DecodedBufSize;
+ SizeT EncodedDataSize;
+ ISzAllocWithData AllocFuncs;
+
+ 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);
LzmaResult = LzmaDecode(
@@ -204,7 +205,7 @@ LzmaUefiDecompress (
LZMA_PROPS_SIZE,
LZMA_FINISH_END,
&Status,
- (ISzAlloc*) &AllocFuncs
+ &(AllocFuncs.Functions)
);
if (LzmaResult == SZ_OK) {