mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-14 18:37:27 +00:00
Merge pull request #141 from lioncash/bounds
Memset the ringbuffer in m_fs_config by the size of the actual ringbuffer struct, not FsRingBufferConfig's size..
This commit is contained in:
commit
ae5d06d4be
@ -33,12 +33,12 @@ struct FsRingBufferConfig
|
|||||||
, m_alloc_mem_size(0)
|
, m_alloc_mem_size(0)
|
||||||
, m_current_addr(0)
|
, m_current_addr(0)
|
||||||
{
|
{
|
||||||
memset(&m_ring_buffer, 0, sizeof(FsRingBufferConfig));
|
memset(&m_ring_buffer, 0, sizeof(FsRingBuffer));
|
||||||
}
|
}
|
||||||
|
|
||||||
~FsRingBufferConfig()
|
~FsRingBufferConfig()
|
||||||
{
|
{
|
||||||
memset(&m_ring_buffer, 0, sizeof(FsRingBufferConfig));
|
memset(&m_ring_buffer, 0, sizeof(FsRingBuffer));
|
||||||
}
|
}
|
||||||
} m_fs_config;
|
} m_fs_config;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user