|
@@ -945,7 +945,7 @@ void ResourceWatcherEntity::RestartThirdPartyProgram(SpReqAnsContext<ResourceWat
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- tmpMsg = "当前系统无搜狗进程,请重启计算机以尝试启动搜狗输入法!";
|
|
|
+ tmpMsg = "当前系统无搜狗进程,请确认已安装搜狗输入法,并重启计算机以尝试启动搜狗输入法!";
|
|
|
tmpResult = Error_Unexpect;
|
|
|
}
|
|
|
}
|
|
@@ -967,7 +967,6 @@ void ResourceWatcherEntity::ProcessDetectThirdPartyProgram(SpReqAnsContext<Resou
|
|
|
ErrorCodeEnum result(Error_Succeed);
|
|
|
ErrorCodeEnum tmpResult(Error_Succeed);
|
|
|
|
|
|
- int procDetectRe = false;
|
|
|
CSimpleStringA tmpMsg(true);
|
|
|
std::string res("");
|
|
|
|
|
@@ -979,20 +978,18 @@ void ResourceWatcherEntity::ProcessDetectThirdPartyProgram(SpReqAnsContext<Resou
|
|
|
|
|
|
if (res.length() == 0)
|
|
|
{
|
|
|
- procDetectRe = false;
|
|
|
+ tmpResult = Error_Failed;
|
|
|
tmpMsg = "Can't find Sogou Process.";
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- procDetectRe = true;
|
|
|
tmpMsg = CSimpleStringA::Format("%s", res.c_str());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
- ctx->Ans.result = procDetectRe;
|
|
|
+ ctx->Ans.result = tmpResult;
|
|
|
ctx->Ans.msg = tmpMsg;
|
|
|
- result = tmpResult;
|
|
|
|
|
|
ctx->Answer(result);
|
|
|
return;
|