Skip to content

Commit

Permalink
Added success checks for hook
Browse files Browse the repository at this point in the history
  • Loading branch information
roussosalex authored and kleest committed Jan 30, 2020
1 parent 25ad051 commit b2601bd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nfcd/src/main/jni/include/nfcd/hook/Hook.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ class Hook {
return r;
}

bool isFound() const {
return mSymbol != nullptr;
}

bool isHooked() const {
return mHook != nullptr;
}

private:
bool constructTrampoline();

Expand Down

0 comments on commit b2601bd

Please sign in to comment.