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(';'):
|
if not cppType.endswith(';'):
|
||||||
cppType += ';'
|
cppType += ';'
|
||||||
tinfo = idc.parse_decl(cppType,idaapi.PT_RAWARGS)
|
tinfo = idc.parse_decl(cppType,idaapi.PT_RAWARGS)
|
||||||
|
ret = None
|
||||||
if not(tinfo is None):
|
if not(tinfo is None):
|
||||||
ret = idc.apply_type(addr,tinfo)
|
ret = idc.apply_type(addr,tinfo)
|
||||||
if ret is None:
|
if ret is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user