util/unzip.cpp: Update for latest LZMA SDK.

This commit is contained in:
Vas Crabb 2023-05-04 02:51:29 +10:00
parent a504bde3a7
commit 472f441a1b

View file

@ -1388,8 +1388,8 @@ std::error_condition zip_file_impl::decompress_data_type_14(std::uint64_t offset
// reset the stream
ISzAlloc alloc_imp;
alloc_imp.Alloc = [] (void *p, std::size_t size) -> void * { return size ? std::malloc(size) : nullptr; };
alloc_imp.Free = [] (void *p, void *address) -> void { std::free(address); };
alloc_imp.Alloc = [] (ISzAllocPtr p, std::size_t size) -> void * { return size ? std::malloc(size) : nullptr; };
alloc_imp.Free = [] (ISzAllocPtr p, void *address) -> void { std::free(address); };
CLzmaDec stream;
LzmaDec_Construct(&stream);