Browse Source

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

scbc 5 years ago
parent
commit
dd07e7c631
1 changed files with 3 additions and 3 deletions
  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);