fix fatal CKStateChunk read error. fix return statement in CKFile

This commit is contained in:
2023-09-26 12:07:13 +08:00
parent 0a168ac5cc
commit 42b9ddaec6
4 changed files with 11 additions and 11 deletions

View File

@ -11,7 +11,7 @@ namespace LibCmo::CK2 {
CKERROR CKFileWriter::Save(CKSTRING u8_filename) {
// check document status
if (this->m_Done) CKERROR::CKERR_CANCELLED;
if (this->m_Done) return CKERROR::CKERR_CANCELLED;
// encoding conv helper
XContainer::XString name_conv;