浏览代码

使用宏:来使用测试配置信息……

scbc 5 年之前
父节点
当前提交
dd07e7c631
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      SATService/SATService/Global.cpp

+ 3 - 3
SATService/SATService/Global.cpp

@@ -188,10 +188,10 @@ namespace GLOBAL
 		if (szPath != NULL && szIniName != NULL)
 			StringCchPrintf(szIniPath, MAX_PATH, _T("%s%s"), szPath, szIniName);
 		else
-#if !defined _DEBUG && !defined RTEST
-			StringCchPrintf(szIniPath, MAX_PATH, _T("%sSATService.ini"), g_szCurModuleDir);
-#else
+#if defined _DEBUG || defined RTEST || defined _DBG_TEST_SERVER_
 			StringCchPrintf(szIniPath, MAX_PATH, _T("%sSATService_Test.ini"), g_szCurModuleDir);
+#else
+			StringCchPrintf(szIniPath, MAX_PATH, _T("%sSATService.ini"), g_szCurModuleDir);
 #endif
 
 		HANDLE hFile = CreateFile(szIniPath, 0/*GENERIC_READ*/, 0, NULL, OPEN_EXISTING, 0, NULL);