From 49f6de04c7106e6ab8ce31fac6299f372a665698 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Tue, 26 Feb 2019 23:09:38 -0500 Subject: Fix some flow graph and disassembly API issues --- python/function.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'python/function.py') diff --git a/python/function.py b/python/function.py index 7471d639..065211c9 100644 --- a/python/function.py +++ b/python/function.py @@ -1905,11 +1905,12 @@ class DisassemblyTextRenderer(object): def basic_block(self, block): if block is not None: core.BNSetDisassemblyTextRendererBasicBlock(self.handle, block.handle) - core.BNSetDisassemblyTextRendererBasicBlock(self.handle, None) + else: + core.BNSetDisassemblyTextRendererBasicBlock(self.handle, None) @property def arch(self): - return binaryninja.architecture.Architecture(handle = core.BNSetDisassemblyTextRendererArchitecture(self.handle)) + return binaryninja.architecture.CoreArchitecture(handle = core.BNGetDisassemblyTextRendererArchitecture(self.handle)) @arch.setter def arch(self, arch): -- cgit v1.3.1