Skip to content

Commit

Permalink
fix handler not reenabling
Browse files Browse the repository at this point in the history
  • Loading branch information
altalk23 committed Jan 19, 2025
1 parent a1f9cc0 commit f6688e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loader/src/loader/LoaderImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ Result<tulip::hook::HandlerHandle> Loader::Impl::getHandler(void* address) {
}

Result<tulip::hook::HandlerHandle> Loader::Impl::getOrCreateHandler(void* address, tulip::hook::HandlerMetadata const& metadata) {
if (m_handlerHandles.count(address)) {
if (m_handlerHandles.count(address) && m_handlerHandles[address].second > 0) {
m_handlerHandles[address].second++;
return Ok(m_handlerHandles[address].first);
}
Expand Down

0 comments on commit f6688e5

Please sign in to comment.