Add a TODO (handling corrupt CSO data)

This commit is contained in:
Henrik Rydgard 2014-07-22 16:07:10 +02:00
parent b462120ee4
commit 272f0b8c70

View File

@ -239,7 +239,7 @@ bool CISOFileBlockDevice::ReadBlock(int blockNumber, u8 *outPtr)
{
ERROR_LOG(LOADER, "block %d:inflate : %s[%d]\n", blockNumber, (z.msg) ? z.msg : "error", status);
inflateEnd(&z);
return 1;
return 1; // TODO: This seems like the wrong return value? Surely we are screwed here (corrupt CSO) ?
}
int cmp_size = blockSize - z.avail_out;
if (cmp_size != (int)blockSize)