mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 16:01:42 +12:00
Memory bugs fixed
This commit is contained in:
parent
369c667faa
commit
c9cd80c089
8 changed files with 33 additions and 30 deletions
|
@ -461,7 +461,7 @@ s32 cellGcmSetPrepareFlip(mem_ptr_t<CellGcmContextData> ctxt, u32 id)
|
|||
|
||||
const s32 res = ctxt->current - ctxt->begin - ctrl.put;
|
||||
|
||||
memmove(Memory + ctxt->begin, Memory + ctxt->current - res, res);
|
||||
memmove(Memory + ctxt->begin, Memory + (ctxt->current - res), res);
|
||||
|
||||
ctxt->current = ctxt->begin + res;
|
||||
|
||||
|
@ -1146,7 +1146,7 @@ int cellGcmCallback(u32 context_addr, u32 count)
|
|||
|
||||
const s32 res = ctx.current - ctx.begin - ctrl.put;
|
||||
|
||||
memmove(Memory + ctx.begin, Memory + ctx.current - res, res);
|
||||
memmove(Memory + ctx.begin, Memory + (ctx.current - res), res);
|
||||
|
||||
ctx.current = ctx.begin + res;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue