|
@@ -180,12 +180,15 @@ namespace GLOBAL
|
|
|
StringCchCat(g_szCurModuleDir, MAX_PATH, szDrive);
|
|
|
StringCchCat(g_szCurModuleDir, MAX_PATH, szDir);
|
|
|
|
|
|
- // -----------------------------------------------------//
|
|
|
TCHAR szIniPath[MAX_PATH] = {0};
|
|
|
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
|
|
|
+ StringCchPrintf(szIniPath, MAX_PATH, _T("%sSATService_Test.ini"), g_szCurModuleDir);
|
|
|
+#endif
|
|
|
|
|
|
HANDLE hFile = CreateFile(szIniPath, 0/*GENERIC_READ*/, 0, NULL, OPEN_EXISTING, 0, NULL);
|
|
|
|