Changeset 997 for trunk/dll/misc.c


Ignore:
Timestamp:
Mar 8, 2008, 9:27:18 PM (17 years ago)
Author:
John Small
Message:

Ticket 230: Make all INI keys for default directory container settings use the
"DirCnr." prefix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/misc.c

    r989 r997  
    10361036                           DIRCNRDATA * dcd, BOOL compare)
    10371037{
    1038 // JBS  CHAR s[CCHMAXPATH], *eos = s;
    10391038  BOOL *bool = NULL;
    10401039
    1041 // JBS  *s = 0;
    1042 // JBS  if (keyroot) {
    1043 // JBS    strcpy(s, keyroot);
    1044 // JBS    strcat(s, ".");
    1045 // JBS    eos = &s[strlen(s)];
    1046 // JBS  }
    10471040  switch (cmd) {
    10481041  case IDM_SHOWLNAMES:
    10491042    bool = dcd ? &dcd->detailslongname : &detailslongname;
    1050 // JBS    strcpy(eos, "DetailsLongname");
    10511043    break;
    10521044  case IDM_SHOWSUBJECT:
    10531045    bool = dcd ? &dcd->detailssubject : &detailssubject;
    1054 // JBS    strcpy(eos, "DetailsSubject");
    10551046    break;
    10561047  case IDM_SHOWEAS:
    10571048    bool = dcd ? &dcd->detailsea : &detailsea;
    1058 // JBS    strcpy(eos, "DetailsEA");
    10591049    break;
    10601050  case IDM_SHOWSIZE:
    10611051    bool = dcd ? &dcd->detailssize : &detailssize;
    1062 // JBS    strcpy(eos, "DetailsSize");
    10631052    break;
    10641053  case IDM_SHOWICON:
    10651054    bool = dcd ? &dcd->detailsicon : &detailsicon;
    1066 // JBS    strcpy(eos, "DetailsIcon");
    10671055    break;
    10681056  case IDM_SHOWLWDATE:
    10691057    bool = dcd ? &dcd->detailslwdate : &detailslwdate;
    1070 // JBS    strcpy(eos, "DetailsLWDate");
    10711058    break;
    10721059  case IDM_SHOWLWTIME:
    10731060    bool = dcd ? &dcd->detailslwtime : &detailslwtime;
    1074 // JBS    strcpy(eos, "DetailsLWTime");
    10751061    break;
    10761062  case IDM_SHOWLADATE:
    10771063    bool = dcd ? &dcd->detailsladate : &detailsladate;
    1078 // JBS    strcpy(eos, "DetailsLADate");
    10791064    break;
    10801065  case IDM_SHOWLATIME:
    10811066    bool = dcd ? &dcd->detailslatime : &detailslatime;
    1082 // JBS    strcpy(eos, "DetailsLATime");
    10831067    break;
    10841068  case IDM_SHOWCRDATE:
    10851069    bool = dcd ? &dcd->detailscrdate : &detailscrdate;
    1086 // JBS    strcpy(eos, "DetailsCRDate");
    10871070    break;
    10881071  case IDM_SHOWCRTIME:
    10891072    bool = dcd ? &dcd->detailscrtime : &detailscrtime;
    1090 // JBS    strcpy(eos, "DetailsCRTime");
    10911073    break;
    10921074  case IDM_SHOWATTR:
    10931075    bool = dcd ? &dcd->detailsattr : &detailsattr;
    1094 // JBS    strcpy(eos, "DetailsAttr");
    10951076    break;
    10961077  default:
     
    11011082  if (bool)
    11021083    *bool = *bool ? FALSE : TRUE;
    1103 // JBS  if (*s && bool)
    1104 // JBS    PrfWriteProfileData(fmprof, appname, s, bool, sizeof(BOOL));
    11051084  if (hwnd)
    11061085    AdjustCnrColsForPref(hwnd, directory, dcd, compare);
     
    12491228  BOOL *bool;
    12501229
    1251 // JBS - No calls to LoadDetailsSwitches have a NULL keyroot.
    1252 //  *s = 0;
    1253 //  if (keyroot) {
    1254     strcpy(s, keyroot);
    1255     strcat(s, ".");
    1256     eos = &s[strlen(s)];
    1257 //  }
     1230  strcpy(s, keyroot);
     1231  strcat(s, ".");
     1232  eos = &s[strlen(s)];
    12581233  strcpy(eos, "DetailsLongname");
    12591234  if (dcd)
Note: See TracChangeset for help on using the changeset viewer.