GzippedFileReader: Don't clamp chunkID on read

This commit is contained in:
Stenzek
2024-05-18 02:45:26 +10:00
committed by Connor McLaughlin
parent 34ae500614
commit 31e935d831
+1 -1
View File
@@ -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;