mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-18 14:25:38 +00:00
ByteStream: Fix incorrect computation in Zstd SeekRelative()
This commit is contained in:
parent
d0d5b79b61
commit
7ef3578630
|
@ -1559,7 +1559,7 @@ public:
|
|||
{
|
||||
const s64 skip = std::min<s64>(m_output_buffer_wpos - m_output_buffer_rpos, remaining);
|
||||
remaining -= skip;
|
||||
m_output_buffer_wpos += static_cast<u32>(skip);
|
||||
m_output_buffer_rpos += static_cast<u32>(skip);
|
||||
if (remaining == 0)
|
||||
return true;
|
||||
else if (!Decompress())
|
||||
|
|
Loading…
Reference in a new issue