From 12b627fa9cf0d7737edf733a40c4d71469a84049 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 29 Mar 2014 16:28:39 -0400 Subject: [PATCH] Memset the ringbuffer in m_fs_config by the size of the actual ringbuffer struct, not FsRingBufferConfig. --- rpcs3/Emu/SysCalls/lv2/SC_FileSystem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/SysCalls/lv2/SC_FileSystem.cpp b/rpcs3/Emu/SysCalls/lv2/SC_FileSystem.cpp index c006439d1e..5dcdf1a12f 100644 --- a/rpcs3/Emu/SysCalls/lv2/SC_FileSystem.cpp +++ b/rpcs3/Emu/SysCalls/lv2/SC_FileSystem.cpp @@ -33,12 +33,12 @@ struct FsRingBufferConfig , m_alloc_mem_size(0) , m_current_addr(0) { - memset(&m_ring_buffer, 0, sizeof(FsRingBufferConfig)); + memset(&m_ring_buffer, 0, sizeof(FsRingBuffer)); } ~FsRingBufferConfig() { - memset(&m_ring_buffer, 0, sizeof(FsRingBufferConfig)); + memset(&m_ring_buffer, 0, sizeof(FsRingBuffer)); } } m_fs_config;