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

Fix access violation handler

This commit is contained in:
Nekotekina 2017-09-01 01:22:48 +03:00
parent 05442bdb11
commit 174f11bdbd

View File

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