IDA: Fix SetType failure when using existing types

This commit is contained in:
Katy Coe
2021-01-08 22:02:47 +01:00
parent 9e118ec8c4
commit 5c93d4e8d9

View File

@@ -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: