diff options
| author | Peter LaFosse <peter@vector35.com> | 2021-09-18 12:59:28 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2021-09-18 12:59:28 -0400 |
| commit | 9b6597c904243e1baa271160ca77d2b8da4218df (patch) | |
| tree | 98ba11136702aca7555cb6797e8d4c8794b2f341 /python/types.py | |
| parent | 4bdaeeece4707a936730c39bb26a25423fb44bfc (diff) | |
Fix creation of mutable StructureBuilder from StructureType
Diffstat (limited to 'python/types.py')
| -rw-r--r-- | python/types.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/types.py b/python/types.py index 8e374d97..67ad8438 100644 --- a/python/types.py +++ b/python/types.py @@ -1853,8 +1853,8 @@ class StructureType(Type): assert type_builder_handle is not None, "core.BNCreateTypeBuilderFromType returned None" structure_handle = core.BNGetTypeStructure(self._handle) assert structure_handle is not None, "core.BNGetTypeStructure returned None" - structure_builder_handle = core.BNCreateStructureTypeBuilder(structure_handle) - assert structure_builder_handle is not None, "core.BNCreateStructureTypeBuilder returned None" + structure_builder_handle = core.BNCreateStructureBuilderFromStructure(structure_handle) + assert structure_builder_handle is not None, "core.BNCreateStructureBuilderFromStructure returned None" return StructureBuilder(type_builder_handle, structure_builder_handle, self.platform, self.confidence) @classmethod |
