Skip to content

Commit

Permalink
fix: RevokeMsgHook on non-NT version
Browse files Browse the repository at this point in the history
  • Loading branch information
cinit committed Jul 18, 2023
1 parent 0953df8 commit 7f45e3a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/cc/ioctl/hook/msg/RevokeMsgHook.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ public void setEnabled(boolean value) {

@Override
public boolean initOnce() throws Exception {
nativeInitNtKernelRecallMsgHook();
if (QAppUtils.isQQnt()) {
nativeInitNtKernelRecallMsgHook();
}
// The method is still there, even on NT.
// I decided to hook them as long as they are there.
// There should only be one method with such signature.
Expand Down

0 comments on commit 7f45e3a

Please sign in to comment.