diff --git a/LibCmo/VTReader.cpp b/LibCmo/VTReader.cpp index 6436a8a..d469067 100644 --- a/LibCmo/VTReader.cpp +++ b/LibCmo/VTReader.cpp @@ -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; diff --git a/Unvirt/Unvirt.cpp b/Unvirt/Unvirt.cpp index ed9b681..0d13dc4 100644 --- a/Unvirt/Unvirt.cpp +++ b/Unvirt/Unvirt.cpp @@ -11,7 +11,7 @@ int main(int argc, char* argv[]) { LibCmo::Utils::VirtoolsEnvironment vtctx; LibCmo::CKFile vtfile(vtctx); - LibCmo::CKERROR err = vtfile.Load("Language.old.nmo", LibCmo::CK_LOAD_FLAGS::CK_LOAD_DEFAULT); + LibCmo::CKERROR err = vtfile.Load("VeryOldFile.nmo", LibCmo::CK_LOAD_FLAGS::CK_LOAD_DEFAULT); Unvirt::StructFormatter::PrintCKFileInfo(vtfile.m_FileInfo);