Changeset 923 for trunk/dll/misc.c
- Timestamp:
- Jan 15, 2008, 1:41:54 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/misc.c
r922 r923 1001 1001 DIRCNRDATA * dcd, BOOL compare) 1002 1002 { 1003 CHAR s[CCHMAXPATH], *eos = s;1003 // JBS CHAR s[CCHMAXPATH], *eos = s; 1004 1004 BOOL *bool = NULL; 1005 1005 1006 *s = 0;1007 if (keyroot) {1008 strcpy(s, keyroot);1009 strcat(s, ".");1010 eos = &s[strlen(s)];1011 }1006 // JBS *s = 0; 1007 // JBS if (keyroot) { 1008 // JBS strcpy(s, keyroot); 1009 // JBS strcat(s, "."); 1010 // JBS eos = &s[strlen(s)]; 1011 // JBS } 1012 1012 switch (cmd) { 1013 1013 case IDM_SHOWLNAMES: 1014 1014 bool = dcd ? &dcd->detailslongname : &detailslongname; 1015 strcpy(eos, "DetailsLongname");1015 // JBS strcpy(eos, "DetailsLongname"); 1016 1016 break; 1017 1017 case IDM_SHOWSUBJECT: 1018 1018 bool = dcd ? &dcd->detailssubject : &detailssubject; 1019 strcpy(eos, "DetailsSubject");1019 // JBS strcpy(eos, "DetailsSubject"); 1020 1020 break; 1021 1021 case IDM_SHOWEAS: 1022 1022 bool = dcd ? &dcd->detailsea : &detailsea; 1023 strcpy(eos, "DetailsEA");1023 // JBS strcpy(eos, "DetailsEA"); 1024 1024 break; 1025 1025 case IDM_SHOWSIZE: 1026 1026 bool = dcd ? &dcd->detailssize : &detailssize; 1027 strcpy(eos, "DetailsSize");1027 // JBS strcpy(eos, "DetailsSize"); 1028 1028 break; 1029 1029 case IDM_SHOWICON: 1030 1030 bool = dcd ? &dcd->detailsicon : &detailsicon; 1031 strcpy(eos, "DetailsIcon");1031 // JBS strcpy(eos, "DetailsIcon"); 1032 1032 break; 1033 1033 case IDM_SHOWLWDATE: 1034 1034 bool = dcd ? &dcd->detailslwdate : &detailslwdate; 1035 strcpy(eos, "DetailsLWDate");1035 // JBS strcpy(eos, "DetailsLWDate"); 1036 1036 break; 1037 1037 case IDM_SHOWLWTIME: 1038 1038 bool = dcd ? &dcd->detailslwtime : &detailslwtime; 1039 strcpy(eos, "DetailsLWTime");1039 // JBS strcpy(eos, "DetailsLWTime"); 1040 1040 break; 1041 1041 case IDM_SHOWLADATE: 1042 1042 bool = dcd ? &dcd->detailsladate : &detailsladate; 1043 strcpy(eos, "DetailsLADate");1043 // JBS strcpy(eos, "DetailsLADate"); 1044 1044 break; 1045 1045 case IDM_SHOWLATIME: 1046 1046 bool = dcd ? &dcd->detailslatime : &detailslatime; 1047 strcpy(eos, "DetailsLATime");1047 // JBS strcpy(eos, "DetailsLATime"); 1048 1048 break; 1049 1049 case IDM_SHOWCRDATE: 1050 1050 bool = dcd ? &dcd->detailscrdate : &detailscrdate; 1051 strcpy(eos, "DetailsCRDate");1051 // JBS strcpy(eos, "DetailsCRDate"); 1052 1052 break; 1053 1053 case IDM_SHOWCRTIME: 1054 1054 bool = dcd ? &dcd->detailscrtime : &detailscrtime; 1055 strcpy(eos, "DetailsCRTime");1055 // JBS strcpy(eos, "DetailsCRTime"); 1056 1056 break; 1057 1057 case IDM_SHOWATTR: 1058 1058 bool = dcd ? &dcd->detailsattr : &detailsattr; 1059 strcpy(eos, "DetailsAttr");1059 // JBS strcpy(eos, "DetailsAttr"); 1060 1060 break; 1061 1061 default: … … 1066 1066 if (bool) 1067 1067 *bool = *bool ? FALSE : TRUE; 1068 if (*s && bool)1069 PrfWriteProfileData(fmprof, appname, s, bool, sizeof(BOOL));1068 // JBS if (*s && bool) 1069 // JBS PrfWriteProfileData(fmprof, appname, s, bool, sizeof(BOOL)); 1070 1070 if (hwnd) 1071 1071 AdjustCnrColsForPref(hwnd, directory, dcd, compare); … … 1214 1214 BOOL *bool; 1215 1215 1216 *s = 0; 1217 if (keyroot) { 1216 // JBS - No calls to LoadDetailsSwitches have a NULL keyroot. 1217 // *s = 0; 1218 // if (keyroot) { 1218 1219 strcpy(s, keyroot); 1219 1220 strcat(s, "."); 1220 1221 eos = &s[strlen(s)]; 1221 }1222 // } 1222 1223 strcpy(eos, "DetailsLongname"); 1223 1224 if (dcd)
Note:
See TracChangeset
for help on using the changeset viewer.