浏览代码

Z991239-6272 #comment 回滚Trim兼容操作

80374374 3 月之前
父节点
当前提交
4a9253e22d
共有 1 个文件被更改,包括 1 次插入9 次删除
  1. 1 9
      Tool/VTMLauncher/VTM_IL.cpp

+ 1 - 9
Tool/VTMLauncher/VTM_IL.cpp

@@ -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;
 	}