mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-02 15:02:11 +00:00
Fix file_view::read_at
This commit is contained in:
parent
71f497947e
commit
8c0debfe65
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user