Fix check_addr arg

This commit is contained in:
Nekotekina 2017-03-25 18:52:35 +03:00
parent f1f53de24b
commit e4d1bdef07
1 changed files with 1 additions and 1 deletions

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)
{