|
@@ -168,14 +168,6 @@ int GetVersion(char** pVersion)
|
|
|
std::string line;
|
|
|
if(std::getline(infile, line)){
|
|
|
CString strVersionTxt(line.c_str());
|
|
|
- strVersionTxt.Trim();
|
|
|
- if (strVersionTxt.IsEmpty()) {
|
|
|
- CString strText;
|
|
|
- strText.Format("[RTA0032] 版本文件内容为空(%s),请重新安装程序版本!", line.c_str());
|
|
|
- MessageBoxA(NULL, strText, ERROR_TITILE, MB_OK | MB_ICONERROR);
|
|
|
- infile.close();
|
|
|
- return 0;
|
|
|
- }
|
|
|
memcpy_s(*pVersion, MAX_PATH, strVersionTxt.GetString(), MAX_PATH);
|
|
|
infile.close();
|
|
|
return 1;
|
|
@@ -251,7 +243,7 @@ BOOL GetSpShellPath(char** pPath)
|
|
|
|
|
|
if (!ExistsFileA(*pPath)) {
|
|
|
CString strText;
|
|
|
- strText.Format("[RTA0035] 程序执行文件不存在,请重新安装程序版本!");
|
|
|
+ strText.Format("[RTA0035] 程序执行文件不存在,请重新安装程序版本!(文件路径:%s)", *pPath);
|
|
|
MessageBoxA(NULL, strText, ERROR_TITILE, MB_OK | MB_ICONERROR);
|
|
|
return FALSE;
|
|
|
}
|