Refactoring

This commit is contained in:
Changhua
2025-02-04 22:52:36 +08:00
parent 0d228745ac
commit 53370ca8b6
2 changed files with 9 additions and 8 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ int InitSpy(LPVOID args)
g_WeChatWinDllAddr = reinterpret_cast<UINT64>(dll_addr);
} else {
LOG_ERROR("获取 WeChatWin.dll 模块地址失败");
return; // TODO: 退出进程,避免后面操作失败
return -1;
}
std::string version = util::get_wechat_version();
@@ -28,7 +28,7 @@ int InitSpy(LPVOID args)
if (version != SUPPORT_VERSION) {
LOG_ERROR(msg);
MessageBoxA(NULL, msg.c_str(), "错误", MB_ICONERROR);
return -1;
return -2;
}
LOG_INFO(msg);