mirror of
https://github.com/cemu-project/idapython.git
synced 2024-11-28 03:54:18 +01:00
- bugfix: According to their docstrings a few functions should be returning 0 or -1 to indicate errors but were returning instead None
This commit is contained in:
parent
0c6b9b31b9
commit
f09375cf70
@ -3878,6 +3878,7 @@ def GetFunctionAttr(ea, attr):
|
||||
|
||||
if func:
|
||||
return _IDC_GetAttr(func, _FUNCATTRMAP, attr)
|
||||
return BADADDR
|
||||
|
||||
|
||||
def SetFunctionAttr(ea, attr, value):
|
||||
@ -3895,6 +3896,7 @@ def SetFunctionAttr(ea, attr, value):
|
||||
if func:
|
||||
_IDC_SetAttr(func, _FUNCATTRMAP, attr, value)
|
||||
return idaapi.update_func(func)
|
||||
return 0
|
||||
|
||||
|
||||
FUNCATTR_START = 0 # function start address
|
||||
@ -5235,6 +5237,7 @@ def SetFchunkAttr(ea, attr, value):
|
||||
if chunk:
|
||||
_IDC_SetAttr(chunk, _FUNCATTRMAP, attr, value)
|
||||
return idaapi.update_func(chunk)
|
||||
return 0
|
||||
|
||||
|
||||
def GetFchunkReferer(ea, idx):
|
||||
|
Loading…
Reference in New Issue
Block a user