Commit a84d2eb5 by ss.dai

修复进程未杀死就替换文件的问题

parent 304a1a04
......@@ -471,6 +471,7 @@ bool FmControl::_KillProcess(const QStringList &exeList, QString &error)
{
QLOG_ERROR() << QString("kill process %1").arg(QString::fromWCharArray(pe32.szExeFile));
TerminateProcess(hProcess,0);
WaitForSingleObject(hProcess,10000);
CloseHandle(hProcess);
}else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment