From e1716b9ccdc83e4cdeeddf34532af1b7a17954b9 Mon Sep 17 00:00:00 2001 From: NotNite Date: Mon, 20 May 2024 13:23:25 -0400 Subject: [PATCH] Fix argument pointer types --- scripts/api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/api.py b/scripts/api.py index a2435e7..755975a 100644 --- a/scripts/api.py +++ b/scripts/api.py @@ -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():