Windows: Partial fix for #368 error messages

This commit is contained in:
Mike Auty
2020-12-27 15:21:18 +00:00
parent feefc93adc
commit 1c2a9921ff
@@ -87,11 +87,11 @@ class Handles(interfaces.plugins.PluginInterface):
# is this the right thing to raise here?
if magic is None:
if not has_capstone:
if has_capstone:
raise AttributeError("Unable to find the SAR value for decoding handle table pointers")
else:
raise exceptions.MissingModuleException(
"capstone", "Unable to find the SAR value for decoding handle table pointers")
"capstone", "Requires capstone to find the SAR value for decoding handle table pointers")
offset = self._decode_pointer(handle_table_entry.LowValue, magic)
# print("LowValue: {0:#x} Magic: {1:#x} Offset: {2:#x}".format(handle_table_entry.InfoTable, magic, offset))