From 24855f0d332d398e5da9622a37d04d090ec5a756 Mon Sep 17 00:00:00 2001 From: disinvite Date: Sun, 7 Apr 2024 21:52:56 -0400 Subject: [PATCH] Ignore imports we can't match --- tools/isledecomp/isledecomp/compare/core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/isledecomp/isledecomp/compare/core.py b/tools/isledecomp/isledecomp/compare/core.py index 3a00bea4..d602af69 100644 --- a/tools/isledecomp/isledecomp/compare/core.py +++ b/tools/isledecomp/isledecomp/compare/core.py @@ -266,6 +266,9 @@ def _match_imports(self): # the connection between the thunk functions. # We already have the symbol name we need from the PDB. for orig, recomp in orig_to_recomp.items(): + if orig is None or recomp is None: + continue + # Match the __imp__ symbol self._db.set_pair(orig, recomp, SymbolType.POINTER)