From 2834697f1f8dbad36aa7a932a5a2b9e60ecd3470 Mon Sep 17 00:00:00 2001 From: Michael Yu Date: Mon, 19 May 2014 02:09:54 -0700 Subject: [PATCH] MEMORY: Copy from real's destination parameter should be immutable --- rpcs3/Emu/Memory/Memory.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Memory/Memory.h b/rpcs3/Emu/Memory/Memory.h index d1dcef50e2..61d7c872ff 100644 --- a/rpcs3/Emu/Memory/Memory.h +++ b/rpcs3/Emu/Memory/Memory.h @@ -333,11 +333,11 @@ public: return true; } - bool CopyFromReal(u32 to, void* real, u32 count) // (4K pages) copy from real to virtual memory + bool CopyFromReal(u32 to, const void* real, u32 count) // (4K pages) copy from real to virtual memory { if (!count) return true; - u8* from = (u8*)real; + const u8* from = (const u8*)real; if (u32 frag = to & 4095) {