about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/tools/bridge.c2
1 files changed, 1 insertions, 1 deletions
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