Skip to content

Commit

Permalink
Update code for a newer Zydis
Browse files Browse the repository at this point in the history
  • Loading branch information
qubka authored Apr 19, 2024
1 parent a0f5749 commit 56bbb0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/disassembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ insts_t ZydisDisassembler::disassemble(

for (auto i = 0; i < insInfo.operand_count; i++) {
auto op = decoded_operands[i];
if (op.type == ZYDIS_OPERAND_TYPE_MEMORY && op.mem.type == ZYDIS_MEMOP_TYPE_MEM && op.mem.disp.has_displacement && op.mem.base == ZYDIS_REGISTER_NONE && op.mem.segment != ZYDIS_REGISTER_DS && inst.isIndirect()) {
if (op.type == ZYDIS_OPERAND_TYPE_MEMORY && op.mem.type == ZYDIS_MEMOP_TYPE_MEM && op.mem.disp.size && op.mem.base == ZYDIS_REGISTER_NONE && op.mem.segment != ZYDIS_REGISTER_DS && inst.isIndirect()) {
inst.setIndirect(false);
}
}
Expand Down

0 comments on commit 56bbb0a

Please sign in to comment.