Skip to content

Commit bc88577

Browse files
committed
commands: Support make-offset in IDA 9.0
1 parent 1fd3374 commit bc88577

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fa/commands/make_offset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
try:
44
import ida_auto
55
import ida_offset
6-
import idaapi
6+
import ida_ida
77
from idc import REF_OFF8, REF_OFF16, REF_OFF32, REF_OFF64
88
except ImportError:
99
pass
@@ -34,7 +34,7 @@ def get_parser():
3434
@context.ida_context
3535
def make_offset(addresses: list[int], offset_len: int = 0):
3636
offset_length_to_ref_type = {
37-
0: REF_OFF64 if idaapi.get_inf_structure().is_64bit() else REF_OFF32,
37+
0: REF_OFF64 if ida_ida.inf_is_64bit() else REF_OFF32,
3838
1: REF_OFF8,
3939
2: REF_OFF16,
4040
4: REF_OFF32,

0 commit comments

Comments
 (0)