Fix ZstdDecompressor error check

This commit is contained in:
sfan5 2021-09-02 11:45:17 +02:00
parent b0ca3d7066
commit f471554294
1 changed files with 2 additions and 2 deletions

View File

@ -47,9 +47,9 @@ ustring ZstdDecompressor::decompress()
buffer.resize(outbuf.size);
outbuf.dst = &buffer[0];
}
if (ret && ZSTD_isError(ret))
throw DecompressError();
} while (ret != 0);
if (ZSTD_isError(ret))
throw DecompressError();
m_seekPos = inbuf.pos;
buffer.resize(outbuf.pos);