Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
Fix argument pointer types
Browse files Browse the repository at this point in the history
  • Loading branch information
NotNite committed May 20, 2024
1 parent 2a8daed commit e1716b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ def set_func_arg_type(self, func, index, type, ptr, name):

if ptr is not None:
for _ in range(ptr):
type_tinfo.create_ptr(type_tinfo)
new_tinfo = ida_typeinf.tinfo_t()
new_tinfo.create_ptr(type_tinfo)
type_tinfo = new_tinfo

orig_type = func_data[index].type
if orig_type.get_size() < type_tinfo.get_size():
Expand Down

0 comments on commit e1716b9

Please sign in to comment.