mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 02:38:37 +12:00
MEMORY: Copy from real's destination parameter should be immutable
This commit is contained in:
parent
346614b0da
commit
2834697f1f
1 changed files with 2 additions and 2 deletions
|
@ -333,11 +333,11 @@ public:
|
||||||
return true;
|
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;
|
if (!count) return true;
|
||||||
|
|
||||||
u8* from = (u8*)real;
|
const u8* from = (const u8*)real;
|
||||||
|
|
||||||
if (u32 frag = to & 4095)
|
if (u32 frag = to & 4095)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue