From 03d9ad3c271671dc538f494604b12b04ea943a58 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Thu, 2 May 2024 20:01:47 -0400 Subject: Fix get_functions_by_name when platform is passed --- python/binaryview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/binaryview.py b/python/binaryview.py index dbf26456..68eedc54 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -4473,7 +4473,7 @@ class BinaryView: for address in addresses: for fn in self.get_functions_at(address): if fn.start == address: - if plat is not None and fn.platform == plat: + if plat is not None and fn.platform != plat: continue fns.append(fn) return fns -- cgit v1.3.1