mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +00:00
Common/ByteStream: Fix buffer corruption in MemoryByteStream
This commit is contained in:
parent
e5f56fcd33
commit
dc7cc3b67f
|
@ -479,7 +479,7 @@ bool MemoryByteStream::WriteByte(u8 SourceByte)
|
|||
{
|
||||
if (m_iPosition < m_iSize)
|
||||
{
|
||||
m_pMemory[m_iSize++] = SourceByte;
|
||||
m_pMemory[m_iPosition++] = SourceByte;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue