Skip to content

Commit 521ec50

Browse files
authored
Merge pull request #5 from dillonfranke/ignore-duplicate-modules2
added additional check for wildcard module before warning of failed hook resolution
2 parents 9facb93 + 61c47b1 commit 521ec50

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tinyinst.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -846,11 +846,11 @@ void TinyInst::OnModuleInstrumented(ModuleInfo* module) {
846846
} else if(hook->GetFunctionOffset()) {
847847
address = (size_t)(module->module_header) + hook->GetFunctionOffset();
848848
} else {
849-
FATAL("Hook specifies neithr function name nor offset");
849+
FATAL("Hook specifies neither function name nor offset");
850850
}
851851
if(address) {
852852
resolved_hooks[address] = hook;
853-
} else {
853+
} else if (hook->GetModuleName() != std::string("*")) {
854854
WARN("Could not resolve function %s in module %s", hook->GetFunctionName().c_str(), hook->GetModuleName().c_str());
855855
}
856856
}

0 commit comments

Comments
 (0)