mirror of
https://github.com/idapython/src
synced 2026-06-08 14:47:00 +00:00
14 lines
409 B
Python
14 lines
409 B
Python
#<pycode(py_funcs)>
|
|
import ida_idaapi
|
|
@ida_idaapi.replfun
|
|
def calc_thunk_func_target(*args):
|
|
if len(args) == 2:
|
|
pfn, rawptr = args
|
|
target, fptr = calc_thunk_func_target.__dict__["orig"](pfn)
|
|
import ida_pro
|
|
ida_pro.ea_pointer.frompointer(rawptr).assign(fptr)
|
|
return target
|
|
else:
|
|
return calc_thunk_func_target.__dict__["orig"](*args)
|
|
#</pycode(py_funcs)>
|