1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 04:02:42 +01:00

Fix check_addr arg

This commit is contained in:
Nekotekina 2017-03-25 18:52:35 +03:00
parent f1f53de24b
commit e4d1bdef07

View File

@ -1148,7 +1148,7 @@ bool handle_access_violation(u32 addr, bool is_writing, x64_context* context)
return true;
}
if (vm::check_addr(addr, d_size))
if (vm::check_addr(addr, std::max<std::size_t>(1, d_size)))
{
if (cpu)
{