From f09375cf7054c16eae7a8990c2525d6b3dbcc1ad Mon Sep 17 00:00:00 2001 From: "ero.carrera@gmail.com" Date: Tue, 27 Apr 2010 13:42:41 +0000 Subject: [PATCH] - bugfix: According to their docstrings a few functions should be returning 0 or -1 to indicate errors but were returning instead None --- python/idc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/idc.py b/python/idc.py index 91700eb..80f5d44 100644 --- a/python/idc.py +++ b/python/idc.py @@ -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):