From 174f11bdbd165665c53449384f81c87917eacd98 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Fri, 1 Sep 2017 01:22:48 +0300 Subject: [PATCH] Fix access violation handler --- Utilities/Thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/Thread.cpp b/Utilities/Thread.cpp index eeaf751539..59c754647b 100644 --- a/Utilities/Thread.cpp +++ b/Utilities/Thread.cpp @@ -1248,7 +1248,7 @@ bool handle_access_violation(u32 addr, bool is_writing, x64_context* context) return true; } - if (vm::check_addr(addr, std::max(1, d_size))) + if (vm::check_addr(addr, std::max(1, d_size), vm::page_allocated | (is_writing ? vm::page_writable : vm::page_readable))) { if (cpu) {