Skip to content

Commit

Permalink
Merge pull request #5 from dillonfranke/ignore-duplicate-modules2
Browse files Browse the repository at this point in the history
added additional check for wildcard module before warning of failed hook resolution
  • Loading branch information
dillonfranke authored Dec 16, 2024
2 parents 9facb93 + 61c47b1 commit 521ec50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tinyinst.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Expand Down

0 comments on commit 521ec50

Please sign in to comment.