mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 22:11:26 +12:00
Fix check_addr arg
This commit is contained in:
parent
f1f53de24b
commit
e4d1bdef07
1 changed files with 1 additions and 1 deletions
|
@ -1148,7 +1148,7 @@ bool handle_access_violation(u32 addr, bool is_writing, x64_context* context)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vm::check_addr(addr, d_size))
|
if (vm::check_addr(addr, std::max<std::size_t>(1, d_size)))
|
||||||
{
|
{
|
||||||
if (cpu)
|
if (cpu)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue