diff --git a/app/src/main/java/cc/ioctl/hook/msg/RevokeMsgHook.java b/app/src/main/java/cc/ioctl/hook/msg/RevokeMsgHook.java index 1cd748373b..d3757597c3 100644 --- a/app/src/main/java/cc/ioctl/hook/msg/RevokeMsgHook.java +++ b/app/src/main/java/cc/ioctl/hook/msg/RevokeMsgHook.java @@ -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.