Skip to content

Commit

Permalink
fix read_at
Browse files Browse the repository at this point in the history
  • Loading branch information
oltolm committed Nov 10, 2023
1 parent 71f4979 commit 5d1e3a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpcs3/Emu/Cell/PPUThread.cpp
Expand Up @@ -3540,7 +3540,7 @@ namespace

u64 read_at(u64 offset, void* buffer, u64 size) override
{
return m_file.read_at(m_off + m_pos, buffer, std::min<u64>(size, utils::sub_saturate<u64>(m_max_size, m_pos)));
return m_file.read_at(offset + m_off, buffer, std::min<u64>(size, utils::sub_saturate<u64>(m_max_size, m_pos)));
}

u64 write(const void*, u64) override
Expand Down

0 comments on commit 5d1e3a4

Please sign in to comment.