From 61c47b1a09fd59b48f6bb35b554dde179cdd0ffb Mon Sep 17 00:00:00 2001 From: Dillon Franke Date: Mon, 16 Dec 2024 10:50:11 -0800 Subject: [PATCH] added additional check for wildcard module before warning of failed hook resolution --- tinyinst.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tinyinst.cpp b/tinyinst.cpp index ad7c760..ff11642 100644 --- a/tinyinst.cpp +++ b/tinyinst.cpp @@ -846,11 +846,11 @@ void TinyInst::OnModuleInstrumented(ModuleInfo* module) { } else if(hook->GetFunctionOffset()) { address = (size_t)(module->module_header) + hook->GetFunctionOffset(); } else { - FATAL("Hook specifies neithr function name nor offset"); + FATAL("Hook specifies neither function name nor offset"); } if(address) { resolved_hooks[address] = hook; - } else { + } else if (hook->GetModuleName() != std::string("*")) { WARN("Could not resolve function %s in module %s", hook->GetFunctionName().c_str(), hook->GetModuleName().c_str()); } }