Skip to content

Commit

Permalink
idapython: fix arguments to get_func_cmt
Browse files Browse the repository at this point in the history
  • Loading branch information
williballenthin committed Jul 30, 2018
1 parent ad85663 commit 9e5e3ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion idb/idapython.py
Original file line number Diff line number Diff line change
Expand Up @@ -1328,7 +1328,7 @@ def get_func(self, ea):
else:
return func

def get_func_cmt(self, func, repeatable):
def get_func_cmt(self, ea, repeatable):
# function comments are stored on the `$ funcs` netnode
# tag is either `R` or `C`.
# index is effective address of the function.
Expand All @@ -1345,6 +1345,8 @@ def get_func_cmt(self, func, repeatable):
#
# i think its a bug that when you set a repeatable function via the IDA UI,
# it also sets a local function comment.

func = self.get_func(ea)
if func is None:
return ''

Expand Down

0 comments on commit 9e5e3ba

Please sign in to comment.