Changeset 1026


Ignore:
Timestamp:
Jun 20, 2008, 4:37:38 AM (17 years ago)
Author:
John Small
Message:

Ticket 239: Fix LoadDetailsSwitches so that the INI file is read correctly
and details switches are set correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/misc.c

    r1020 r1026  
    4343  08 Mar 08 JBS Ticket 230: Replace prefixless INI keys for default directory containers with
    4444                keys using a "DirCnr." prefix
     45  19 Jun 08 JBS Ticket 239: Fix LoadDetailsSwitches so INI file is read correctly and details
     46                switches are set correctly.
    4547
    4648***********************************************************************/
     
    12331235  strcat(s, ".");
    12341236  eos = &s[strlen(s)];
    1235   strcpy(eos, "DirCnr.DetailsLongname");
     1237  strcpy(eos, "DetailsLongname");
    12361238  if (dcd)
    12371239    bool = &dcd->detailslongname;
     
    12411243  size = sizeof(BOOL);
    12421244  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    1243   strcpy(eos, "DirCnr.DetailsSubject");
     1245  strcpy(eos, "DetailsSubject");
    12441246  if (dcd)
    12451247    bool = &dcd->detailssubject;
     
    12491251  size = sizeof(BOOL);
    12501252  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    1251   strcpy(eos, "DirCnr.DetailsEA");
     1253  strcpy(eos, "DetailsEA");
    12521254  if (dcd)
    12531255    bool = &dcd->detailsea;
     
    12571259  size = sizeof(BOOL);
    12581260  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    1259   strcpy(eos, "DirCnr.DetailsSize");
     1261  strcpy(eos, "DetailsSize");
    12601262  if (dcd)
    12611263    bool = &dcd->detailssize;
     
    12651267  size = sizeof(BOOL);
    12661268  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    1267   strcpy(eos, "DirCnr.DetailsIcon");
     1269  strcpy(eos, "DetailsIcon");
    12681270  if (dcd)
    12691271    bool = &dcd->detailsicon;
     
    12731275  size = sizeof(BOOL);
    12741276  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    1275   strcpy(eos, "DirCnr.DetailsAttr");
     1277  strcpy(eos, "DetailsAttr");
    12761278  if (dcd)
    12771279    bool = &dcd->detailsattr;
     
    12811283  size = sizeof(BOOL);
    12821284  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    1283   strcpy(eos, "DirCnr.DetailsCRDate");
     1285  strcpy(eos, "DetailsCRDate");
    12841286  if (dcd)
    12851287    bool = &dcd->detailscrdate;
     
    12891291  size = sizeof(BOOL);
    12901292  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    1291   strcpy(eos, "DirCnr.DetailsCRTime");
     1293  strcpy(eos, "DetailsCRTime");
    12921294  if (dcd)
    12931295    bool = &dcd->detailscrtime;
     
    12971299  size = sizeof(BOOL);
    12981300  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    1299   strcpy(eos, "DirCnr.DetailsLWDate");
     1301  strcpy(eos, "DetailsLWDate");
    13001302  if (dcd)
    13011303    bool = &dcd->detailslwdate;
     
    13051307  size = sizeof(BOOL);
    13061308  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    1307   strcpy(eos, "DirCnr.DetailsLWTime");
     1309  strcpy(eos, "DetailsLWTime");
    13081310  if (dcd)
    13091311    bool = &dcd->detailslwtime;
     
    13131315  size = sizeof(BOOL);
    13141316  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    1315   strcpy(eos, "DirCnr.DetailsLADate");
     1317  strcpy(eos, "DetailsLADate");
    13161318  if (dcd)
    13171319    bool = &dcd->detailsladate;
     
    13211323  size = sizeof(BOOL);
    13221324  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    1323   strcpy(eos, "DirCnr.DetailsLATime");
     1325  strcpy(eos, "DetailsLATime");
    13241326  if (dcd)
    13251327    bool = &dcd->detailslatime;
     
    13291331  size = sizeof(BOOL);
    13301332  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    1331   strcpy(eos, "DirCnr.SubjectInLeftPane");
     1333  strcpy(eos, "SubjectInLeftPane");
    13321334  if (dcd)
    13331335    bool = &dcd->fSubjectInLeftPane;
     
    13371339  size = sizeof(BOOL);
    13381340  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    1339   strcpy(eos, "DirCnr.SubjectLengthMax");
     1341  strcpy(eos, "SubjectLengthMax");
    13401342  if (dcd)
    13411343    bool = &dcd->fSubjectLengthMax;
     
    13491351      dcd->SubjectDisplayWidth = 0;
    13501352    else {
    1351       strcpy(eos, "DirCnr.SubjectDisplayWidth");
     1353      strcpy(eos, "SubjectDisplayWidth");
    13521354      bool = &dcd->SubjectDisplayWidth;
    13531355      *bool = SubjectDisplayWidth;
     
    13641366      SubjectDisplayWidth = 0;
    13651367    else {
    1366       strcpy(eos, "DirCnr.SubjectDisplayWidth");
     1368      strcpy(eos, "SubjectDisplayWidth");
    13671369      bool = &SubjectDisplayWidth;
    13681370      *bool = SubjectDisplayWidth;
Note: See TracChangeset for help on using the changeset viewer.