small fix

This commit is contained in:
2025-11-28 14:09:22 +01:00
parent 5e81dfd69a
commit c056457e97

View File

@@ -537,7 +537,7 @@ fn relocateInstruction(
// Check for relative immediate (e.g. JMP rel32) // Check for relative immediate (e.g. JMP rel32)
const is_rel_imm = operand.type == zydis.ZYDIS_OPERAND_TYPE_IMMEDIATE and const is_rel_imm = operand.type == zydis.ZYDIS_OPERAND_TYPE_IMMEDIATE and
operand.unnamed_0.imm.is_relative == zydis.ZYAN_TRUE; 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 // We have to apply a relocation
const status = zydis.ZydisCalcAbsoluteAddress( const status = zydis.ZydisCalcAbsoluteAddress(