From c056457e97f83a4bd64c3e544363d7b71bf0c335 Mon Sep 17 00:00:00 2001 From: Pascal Zittlau Date: Fri, 28 Nov 2025 14:09:22 +0100 Subject: [PATCH] small fix --- src/Patcher.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Patcher.zig b/src/Patcher.zig index 219fae6..625650a 100644 --- a/src/Patcher.zig +++ b/src/Patcher.zig @@ -537,7 +537,7 @@ fn relocateInstruction( // Check for relative immediate (e.g. JMP rel32) const is_rel_imm = operand.type == zydis.ZYDIS_OPERAND_TYPE_IMMEDIATE and operand.unnamed_0.imm.is_relative == zydis.ZYAN_TRUE; - if (!is_rip_rel and !is_rel_imm) return; + if (!is_rip_rel and !is_rel_imm) continue; // We have to apply a relocation const status = zydis.ZydisCalcAbsoluteAddress(