mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-11 01:08:39 +12:00
Fix sys_memory_free
This commit is contained in:
parent
bf89b709cb
commit
9acaee563b
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ error_code sys_memory_free(u32 addr)
|
||||||
|
|
||||||
const auto area = vm::get(vm::any, addr);
|
const auto area = vm::get(vm::any, addr);
|
||||||
|
|
||||||
if ((area->flags & 3) != 1)
|
if (!area || (area->flags & 3) != 1)
|
||||||
{
|
{
|
||||||
return {CELL_EINVAL, addr};
|
return {CELL_EINVAL, addr};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue