From 8ce1a2d60500c279f6f3cf7a8a07a5ff3be3bab0 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Fri, 11 Nov 2022 20:55:02 +0100 Subject: Fix an issue with dynarec build when running without dynarec --- src/tools/bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/tools/bridge.c b/src/tools/bridge.c index 5da522ec..eb6939fb 100755 --- a/src/tools/bridge.c +++ b/src/tools/bridge.c @@ -137,7 +137,7 @@ uintptr_t AddBridge(bridge_t* bridge, wrapper_t w, void* fnc, int N, const char* pthread_mutex_unlock(&my_context->mutex_bridge); #ifdef DYNAREC // only reprotect the block when stuffs are running - if(!my_context->deferedInit) + if(!my_context->deferedInit && box64_dynarec) protectDB((uintptr_t)b->b, NBRICK*sizeof(onebridge_t)); #endif #ifdef HAVE_TRACE -- cgit 1.4.1