Skip to content

Commit

Permalink
GzippedFileReader: Don't clamp chunkID on read
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed May 17, 2024
1 parent 34ae500 commit 31e935d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcsx2/CDVD/GzippedFileReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 31e935d

Please sign in to comment.