Changeset 4 for trunk/classes/c/c_common


Ignore:
Timestamp:
Jul 13, 2017, 5:17:57 AM (8 years ago)
Author:
stevenhl
Message:

Import modifications from cwmm-0_2_9-work-01_10_2006.zip dated 2006-08-27

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/classes/c/c_common/helper.c

    r2 r4  
    11/*
    2  * This file is (C) Chris Wohlgemuth 2001/2004
     2 * This file is (C) Chris Wohlgemuth 2001-2005
    33 */
    44/*
     
    329329}
    330330
     331/* MMCLS_INI_FILE_NAME = "\\cwmm.ini" See ...\common.h */
    331332PSZ _queryMMClassIniFile(void)
    332333{
    333334  static char iniName[CCHMAXPATH]= {0};
    334335
    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  }
    337345
    338346  return iniName;
Note: See TracChangeset for help on using the changeset viewer.