From a3f63a12f9102794ce1d94c972064f10a25e944b Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 4 Sep 2022 15:21:32 +0200 Subject: [DYNAREC] Improve memory protection tracking (help #361) --- src/libtools/signals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libtools') diff --git a/src/libtools/signals.c b/src/libtools/signals.c index c003c863..df0b7d0b 100755 --- a/src/libtools/signals.c +++ b/src/libtools/signals.c @@ -808,7 +808,7 @@ void my_box64signalhandler(int32_t sig, siginfo_t* info, void * ucntx) repeated_count = 0; } // access error, unprotect the block (and mark them dirty) - unprotectDB((uintptr_t)addr, 1); // unprotect 1 byte... But then, the whole page will be unprotected + unprotectDB((uintptr_t)addr, 1, 1); // unprotect 1 byte... But then, the whole page will be unprotected if(db && ((addr>=db->x64_addr && addr<(db->x64_addr+db->x64_size)) || db->need_test)) { // dynablock got auto-dirty! need to get out of it!!! emu_jmpbuf_t* ejb = GetJmpBuf(); -- cgit 1.4.1