IDA: Fix SetType failure when using existing types
This commit is contained in:
@@ -32,6 +32,7 @@ def SetType(addr, cppType):
|
||||
if not cppType.endswith(';'):
|
||||
cppType += ';'
|
||||
tinfo = idc.parse_decl(cppType,idaapi.PT_RAWARGS)
|
||||
ret = None
|
||||
if not(tinfo is None):
|
||||
ret = idc.apply_type(addr,tinfo)
|
||||
if ret is None:
|
||||
|
||||
Reference in New Issue
Block a user