Fix minor code style issue

This commit is contained in:
Jonathan G Rennison
2024-07-07 15:00:50 +01:00
parent 95245d5a57
commit 0dc4be2aa0

View File

@@ -2588,7 +2588,7 @@ static void SlLoadCheckChunk(const ChunkHandler *ch, uint32_t chunk_id)
if (ext_flags) { if (ext_flags) {
SlErrorCorruptFmt("CH_ARRAY does not take chunk header extension flags: 0x%X in %s", ext_flags, ChunkIDDumper()(chunk_id)); SlErrorCorruptFmt("CH_ARRAY does not take chunk header extension flags: 0x%X in %s", ext_flags, ChunkIDDumper()(chunk_id));
} }
if (ch && ch->load_check_proc) { if (ch != nullptr && ch->load_check_proc) {
ch->load_check_proc(); ch->load_check_proc();
} else { } else {
if (m == CH_TABLE) SlSkipTableHeader(); if (m == CH_TABLE) SlSkipTableHeader();
@@ -2600,7 +2600,7 @@ static void SlLoadCheckChunk(const ChunkHandler *ch, uint32_t chunk_id)
if (ext_flags) { if (ext_flags) {
SlErrorCorruptFmt("CH_SPARSE_ARRAY does not take chunk header extension flags: 0x%X in %s", ext_flags, ChunkIDDumper()(chunk_id)); SlErrorCorruptFmt("CH_SPARSE_ARRAY does not take chunk header extension flags: 0x%X in %s", ext_flags, ChunkIDDumper()(chunk_id));
} }
if (ch && ch->load_check_proc) { if (ch != nullptr && ch->load_check_proc) {
ch->load_check_proc(); ch->load_check_proc();
} else { } else {
if (m == CH_SPARSE_TABLE) SlSkipTableHeader(); if (m == CH_SPARSE_TABLE) SlSkipTableHeader();
@@ -2632,7 +2632,7 @@ static void SlLoadCheckChunk(const ChunkHandler *ch, uint32_t chunk_id)
} }
_sl.obj_len = len; _sl.obj_len = len;
endoffs = _sl.reader->GetSize() + len; endoffs = _sl.reader->GetSize() + len;
if (ch && ch->load_check_proc) { if (ch != nullptr && ch->load_check_proc) {
ch->load_check_proc(); ch->load_check_proc();
} else { } else {
SlSkipBytes(len); SlSkipBytes(len);