GetFchunkAttr() is reimplemented using idaapi rather than Eval() and IDC (issue 52)

This commit is contained in:
elias.bachaalany 2010-07-02 16:10:30 +00:00
parent 5b59791156
commit 4b1c3cd4c4

View File

@ -5244,7 +5244,8 @@ def GetFchunkAttr(ea, attr):
@return: desired attribute or -1
"""
return Eval("GetFchunkAttr(0x%x, %d);" % (ea, attr))
func = idaapi.get_fchunk(ea)
return _IDC_GetAttr(func, _FUNCATTRMAP, attr) if func else BADADDR
def SetFchunkAttr(ea, attr, value):