mirror of https://github.com/PCSX2/pcsx2.git
GzippedFileReader: Don't clamp chunkID on read
This commit is contained in:
parent
34ae500614
commit
31e935d831
|
@ -232,7 +232,7 @@ ThreadedFileReader::Chunk GzippedFileReader::ChunkForOffset(u64 offset)
|
|||
|
||||
int GzippedFileReader::ReadChunk(void* dst, s64 chunkID)
|
||||
{
|
||||
if (chunkID < 0 || chunkID >= m_index->size)
|
||||
if (chunkID < 0)
|
||||
return -1;
|
||||
|
||||
const s64 file_offset = chunkID * m_index->span;
|
||||
|
|
Loading…
Reference in New Issue