From 837cc9dd93cd4be838f35645717124ace7361631 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Mon, 18 Dec 2023 14:15:10 +0100 Subject: [DYNAREC] This should avoid useless segfault on bridge creation --- src/custommem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/custommem.c b/src/custommem.c index 7e73a23d..6facc46d 100644 --- a/src/custommem.c +++ b/src/custommem.c @@ -1072,8 +1072,8 @@ void protectDB(uintptr_t addr, uintptr_t size) uint32_t dyn = prot&PROT_DYN; if(!prot) prot = PROT_READ | PROT_WRITE | PROT_EXEC; // comes from malloc & co, so should not be able to execute - prot&=~PROT_CUSTOM; if(!(dyn&PROT_NOPROT)) { + prot&=~PROT_CUSTOM; if(prot&PROT_WRITE) { if(!dyn) mprotect((void*)(i<