Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
Fixed decompose wrapper bug.
  • Loading branch information
gdabah authored Apr 20, 2020
1 parent 941083d commit a972979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/distorm3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ def DecomposeGenerator(codeOffset, code, dt, features = 0):
lastInst = result[used - 1]
delta = lastInst.addr + lastInst.size - codeOffset
codeOffset = codeOffset + delta
p_code = byref(code_buf, delta)
p_code = byref(code_buf, codeOffset - startCodeOffset)
codeLen = codeLen - delta

if (features & DF_STOP_ON_FLOW_CONTROL) != 0:
Expand Down

0 comments on commit a972979

Please sign in to comment.