mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-10 07:08:21 +08:00
Fix idaxml set_member_cmt func call
The script originally was incorrectly calling `idc.set_member_cmt` which takes different arguments to calculate the member struct and offset. And then it passes the results into the `ida_struct` version. However, this is already done, so we can just go straight to the `ida_struct` version.
This commit is contained in:
@@ -3111,11 +3111,11 @@ class XmlImporter(IdaXml):
|
||||
"""
|
||||
regcmt = member.find(REGULAR_CMT)
|
||||
if regcmt != None:
|
||||
idc.set_member_cmt(mbr, regcmt.text, False)
|
||||
ida_struct.set_member_cmt(mbr, regcmt.text, False)
|
||||
self.update_counter(MEMBER + ':' + REGULAR_CMT)
|
||||
rptcmt = member.find(REPEATABLE_CMT)
|
||||
if rptcmt != None:
|
||||
idc.set_member_cmt(mbr, rptcmt.text, True)
|
||||
ida_struct.set_member_cmt(mbr, rptcmt.text, True)
|
||||
self.update_counter(MEMBER + ':' + REPEATABLE_CMT)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user