Skip to content
Permalink
Browse files

Added success checks for hook

  • Loading branch information
roussosalex authored and kleest committed Jan 28, 2020
1 parent 25ad051 commit b2601bdf58e70c0fc25ac5f65582f47e9721400f
Showing with 8 additions and 0 deletions.
  1. +8 −0 nfcd/src/main/jni/include/nfcd/hook/Hook.h
@@ -31,6 +31,14 @@ class Hook {
return r;
}

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

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

private:
bool constructTrampoline();

0 comments on commit b2601bd

Please sign in to comment.
You can’t perform that action at this time.