fix a decompress buffer length error

This commit is contained in:
2023-02-18 14:43:29 +08:00
parent 4173de5d2c
commit 58aee73fd6
2 changed files with 2 additions and 2 deletions

View File

@ -239,7 +239,7 @@ namespace LibCmo {
parser->MoveCursor(this->m_FileInfo.DataPackSize);
if (decomp_buffer != nullptr) {
parser = new(std::nothrow) CKBufferParser(decomp_buffer, this->m_FileInfo.Hdr1UnPackSize, true);
parser = new(std::nothrow) CKBufferParser(decomp_buffer, this->m_FileInfo.DataUnPackSize, true);
if (parser == nullptr) {
delete[] decomp_buffer;
return CKERROR::CKERR_OUTOFMEMORY;