Changeset 1026
- Timestamp:
- Jun 20, 2008, 4:37:38 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/misc.c
r1020 r1026 43 43 08 Mar 08 JBS Ticket 230: Replace prefixless INI keys for default directory containers with 44 44 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. 45 47 46 48 ***********************************************************************/ … … 1233 1235 strcat(s, "."); 1234 1236 eos = &s[strlen(s)]; 1235 strcpy(eos, "D irCnr.DetailsLongname");1237 strcpy(eos, "DetailsLongname"); 1236 1238 if (dcd) 1237 1239 bool = &dcd->detailslongname; … … 1241 1243 size = sizeof(BOOL); 1242 1244 PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size); 1243 strcpy(eos, "D irCnr.DetailsSubject");1245 strcpy(eos, "DetailsSubject"); 1244 1246 if (dcd) 1245 1247 bool = &dcd->detailssubject; … … 1249 1251 size = sizeof(BOOL); 1250 1252 PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size); 1251 strcpy(eos, "D irCnr.DetailsEA");1253 strcpy(eos, "DetailsEA"); 1252 1254 if (dcd) 1253 1255 bool = &dcd->detailsea; … … 1257 1259 size = sizeof(BOOL); 1258 1260 PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size); 1259 strcpy(eos, "D irCnr.DetailsSize");1261 strcpy(eos, "DetailsSize"); 1260 1262 if (dcd) 1261 1263 bool = &dcd->detailssize; … … 1265 1267 size = sizeof(BOOL); 1266 1268 PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size); 1267 strcpy(eos, "D irCnr.DetailsIcon");1269 strcpy(eos, "DetailsIcon"); 1268 1270 if (dcd) 1269 1271 bool = &dcd->detailsicon; … … 1273 1275 size = sizeof(BOOL); 1274 1276 PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size); 1275 strcpy(eos, "D irCnr.DetailsAttr");1277 strcpy(eos, "DetailsAttr"); 1276 1278 if (dcd) 1277 1279 bool = &dcd->detailsattr; … … 1281 1283 size = sizeof(BOOL); 1282 1284 PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size); 1283 strcpy(eos, "D irCnr.DetailsCRDate");1285 strcpy(eos, "DetailsCRDate"); 1284 1286 if (dcd) 1285 1287 bool = &dcd->detailscrdate; … … 1289 1291 size = sizeof(BOOL); 1290 1292 PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size); 1291 strcpy(eos, "D irCnr.DetailsCRTime");1293 strcpy(eos, "DetailsCRTime"); 1292 1294 if (dcd) 1293 1295 bool = &dcd->detailscrtime; … … 1297 1299 size = sizeof(BOOL); 1298 1300 PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size); 1299 strcpy(eos, "D irCnr.DetailsLWDate");1301 strcpy(eos, "DetailsLWDate"); 1300 1302 if (dcd) 1301 1303 bool = &dcd->detailslwdate; … … 1305 1307 size = sizeof(BOOL); 1306 1308 PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size); 1307 strcpy(eos, "D irCnr.DetailsLWTime");1309 strcpy(eos, "DetailsLWTime"); 1308 1310 if (dcd) 1309 1311 bool = &dcd->detailslwtime; … … 1313 1315 size = sizeof(BOOL); 1314 1316 PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size); 1315 strcpy(eos, "D irCnr.DetailsLADate");1317 strcpy(eos, "DetailsLADate"); 1316 1318 if (dcd) 1317 1319 bool = &dcd->detailsladate; … … 1321 1323 size = sizeof(BOOL); 1322 1324 PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size); 1323 strcpy(eos, "D irCnr.DetailsLATime");1325 strcpy(eos, "DetailsLATime"); 1324 1326 if (dcd) 1325 1327 bool = &dcd->detailslatime; … … 1329 1331 size = sizeof(BOOL); 1330 1332 PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size); 1331 strcpy(eos, " DirCnr.SubjectInLeftPane");1333 strcpy(eos, "SubjectInLeftPane"); 1332 1334 if (dcd) 1333 1335 bool = &dcd->fSubjectInLeftPane; … … 1337 1339 size = sizeof(BOOL); 1338 1340 PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size); 1339 strcpy(eos, " DirCnr.SubjectLengthMax");1341 strcpy(eos, "SubjectLengthMax"); 1340 1342 if (dcd) 1341 1343 bool = &dcd->fSubjectLengthMax; … … 1349 1351 dcd->SubjectDisplayWidth = 0; 1350 1352 else { 1351 strcpy(eos, " DirCnr.SubjectDisplayWidth");1353 strcpy(eos, "SubjectDisplayWidth"); 1352 1354 bool = &dcd->SubjectDisplayWidth; 1353 1355 *bool = SubjectDisplayWidth; … … 1364 1366 SubjectDisplayWidth = 0; 1365 1367 else { 1366 strcpy(eos, " DirCnr.SubjectDisplayWidth");1368 strcpy(eos, "SubjectDisplayWidth"); 1367 1369 bool = &SubjectDisplayWidth; 1368 1370 *bool = SubjectDisplayWidth;
Note:
See TracChangeset
for help on using the changeset viewer.