diff --git a/src/MiraiCQ/MiraiCQ/plus/MiraiPlus.cpp b/src/MiraiCQ/MiraiCQ/plus/MiraiPlus.cpp index 07760ad..59ee1c6 100644 --- a/src/MiraiCQ/MiraiCQ/plus/MiraiPlus.cpp +++ b/src/MiraiCQ/MiraiCQ/plus/MiraiPlus.cpp @@ -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);