From d39aef3f5a253ed67709ef727f369bc065ef7cd0 Mon Sep 17 00:00:00 2001 From: WW Date: Tue, 20 Oct 2020 15:15:29 +0000 Subject: [PATCH] Changed `LZ4F_dctx*` to `LZ4F_decompressionContext_t` for better compatibility. --- components/bsa/compressedbsafile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bsa/compressedbsafile.cpp b/components/bsa/compressedbsafile.cpp index bf805e5f7..adc98c454 100644 --- a/components/bsa/compressedbsafile.cpp +++ b/components/bsa/compressedbsafile.cpp @@ -375,7 +375,7 @@ Files::IStreamPtr CompressedBSAFile::getFile(const FileRecord& fileRecord) { boost::scoped_array buffer(new char[size]); fileStream->read(buffer.get(), size); - LZ4F_dctx* context = nullptr; + LZ4F_decompressionContext_t context = nullptr; LZ4F_createDecompressionContext(&context, LZ4F_VERSION); LZ4F_decompressOptions_t options = {}; LZ4F_decompress(context, memoryStreamPtr->getRawData(), &uncompressedSize, buffer.get(), &size, &options);