Changeset 4 for trunk/classes/c/c_common
- Timestamp:
- Jul 13, 2017, 5:17:57 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/classes/c/c_common/helper.c
r2 r4 1 1 /* 2 * This file is (C) Chris Wohlgemuth 2001 /20042 * This file is (C) Chris Wohlgemuth 2001-2005 3 3 */ 4 4 /* … … 329 329 } 330 330 331 /* MMCLS_INI_FILE_NAME = "\\cwmm.ini" See ...\common.h */ 331 332 PSZ _queryMMClassIniFile(void) 332 333 { 333 334 static char iniName[CCHMAXPATH]= {0}; 334 335 335 if(iniName[0]==0) 336 sprintf(iniName, "%s\\bin\\CWMM.INI", queryInstallDir()); 336 if(iniName[0]==0) { 337 /* Default is INI file in users home dir */ 338 if(SysQueryHomeDir(iniName, sizeof(iniName))) { 339 strlcat(iniName, MMCLS_INI_FILE_NAME, sizeof(iniName)); /* MMCLS_INI_FILE_NAME = "\\CWMM.INI" */ 340 return iniName; 341 } 342 343 sprintf(iniName, "%s\\bin%s", queryInstallDir(), MMCLS_INI_FILE_NAME); 344 } 337 345 338 346 return iniName;
Note:
See TracChangeset
for help on using the changeset viewer.