From 5481e6d3ec73cb513c6a38943c53fdb8fb6fa90f Mon Sep 17 00:00:00 2001 From: Changhua Date: Sun, 30 Jun 2024 16:23:12 +0800 Subject: [PATCH] Fix operator --- WeChatFerry/spy/receive_msg.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WeChatFerry/spy/receive_msg.cpp b/WeChatFerry/spy/receive_msg.cpp index 6fc96ec..f244f29 100644 --- a/WeChatFerry/spy/receive_msg.cpp +++ b/WeChatFerry/spy/receive_msg.cpp @@ -222,7 +222,7 @@ void DisableLog() } gIsLogging = false; - if (isMH_Initialized and !gIsLogging and !gIsListening and !gIsListeningPyq) { + if (isMH_Initialized && !gIsLogging && !gIsListening && !gIsListeningPyq) { status = MH_Uninitialize(); if (status != MH_OK) { LOG_ERROR("MH_Uninitialize failed: {}", to_string(status)); @@ -284,7 +284,7 @@ void UnListenMessage() } gIsListening = false; - if (isMH_Initialized and !gIsLogging and !gIsListening and !gIsListeningPyq) { + if (isMH_Initialized && !gIsLogging && !gIsListening && !gIsListeningPyq) { status = MH_Uninitialize(); if (status != MH_OK) { LOG_ERROR("MH_Uninitialize failed: {}", to_string(status)); @@ -346,7 +346,7 @@ void UnListenPyq() } gIsListeningPyq = false; - if (isMH_Initialized and !gIsLogging and !gIsListening and !gIsListeningPyq) { + if (isMH_Initialized && !gIsLogging && !gIsListening && !gIsListeningPyq) { status = MH_Uninitialize(); if (status != MH_OK) { LOG_ERROR("MH_Uninitialize failed: {}", to_string(status));