Skip to content

Commit

Permalink
尝试解决部分电脑上无法双击打卡的问题上
Browse files Browse the repository at this point in the history
  • Loading branch information
super1207 committed Oct 2, 2022
1 parent eb5f7eb commit d001235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MiraiCQ/MiraiCQ/plus/MiraiPlus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ MiraiPlus::PlusDef::Process::Process(const std::string& dll_name,const std::stri
STARTUPINFO si = { sizeof(si) };
PROCESS_INFORMATION pi;
MiraiLog::get_instance()->add_debug_log("PLUSLOAD", cmd);
BOOL bRet = CreateProcessA(path_str, (LPSTR)cmd.c_str(), NULL, NULL, FALSE, DETACHED_PROCESS, NULL, NULL, &si, &pi);
BOOL bRet = CreateProcessA(path_str, (LPSTR)cmd.c_str(), NULL, NULL, FALSE, DETACHED_PROCESS | CREATE_BREAKAWAY_FROM_JOB, NULL, NULL, &si, &pi);
if (bRet != TRUE) {
MiraiLog::get_instance()->add_fatal_log("PLUSLOAD", "创建插件进程失败");
exit(-1);
Expand Down

0 comments on commit d001235

Please sign in to comment.