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));