Merge pull request #2 from Antidote/cmake

Fix crashes while attempting to load MP2 and MP3
This commit is contained in:
Jack Andersen
2019-05-27 01:01:51 -10:00
committed by GitHub
4 changed files with 40 additions and 8 deletions

View File

@@ -105,7 +105,9 @@ namespace CompressionUtil
bool DecompressLZO(uint8 *pSrc, uint32 SrcLen, uint8 *pDst, uint32& rTotalOut)
{
#if USE_LZOKAY
lzokay::EResult Result = lzokay::decompress(pSrc, (size_t) SrcLen, pDst, (size_t&) rTotalOut);
size_t TotalOut = rTotalOut;
lzokay::EResult Result = lzokay::decompress(pSrc, (size_t) SrcLen, pDst, TotalOut);
rTotalOut = TotalOut;
if (Result < lzokay::EResult::Success)
{