From 7f45e3aa0aa18bf936c2d1f0a72598cf4b0f4f3f Mon Sep 17 00:00:00 2001 From: ACh Sulfate <40174090+cinit@users.noreply.github.com> Date: Tue, 18 Jul 2023 01:30:03 +0000 Subject: [PATCH] fix: RevokeMsgHook on non-NT version --- app/src/main/java/cc/ioctl/hook/msg/RevokeMsgHook.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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.