Changeset 1328 for trunk/dll/mainwnd.c
- Timestamp:
- Dec 9, 2008, 5:28:40 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/mainwnd.c
r1326 r1328 2972 2972 sprintf(szKey, "%sDirCnrSort.%lu", szPrefix, numsaves); 2973 2973 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->sortFlags, 2974 size Int);2974 sizeof(INT)); 2975 2975 sprintf(szKey, "%sDirCnrFilter.%lu", szPrefix, numsaves); 2976 2976 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->mask, … … 3049 3049 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(SWP)); 3050 3050 sprintf(szKey, "%sDirCnrSort.%lu", szPrefix, ulTemp); 3051 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, size Int);3051 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(INT)); 3052 3052 sprintf(szKey, "%sDirCnrFilter.%lu", szPrefix, ulTemp); 3053 3053 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(MASK)); 3054 3054 sprintf(szKey, "%sDirCnrView.%lu", szPrefix, ulTemp); 3055 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, size Ulong);3055 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(ULONG)); 3056 3056 sprintf(szKey, "%sDirCnr.%lu.DetailsLongname", szPrefix, ulTemp); 3057 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, size Bool);3057 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL)); 3058 3058 sprintf(szKey, "%sDirCnr.%lu.DetailsSubject", szPrefix, ulTemp); 3059 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, size Bool);3059 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL)); 3060 3060 sprintf(szKey, "%sDirCnr.%lu.DetailsSize", szPrefix, ulTemp); 3061 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, size Bool);3061 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL)); 3062 3062 sprintf(szKey, "%sDirCnr.%lu.DetailsEA", szPrefix, ulTemp); 3063 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, size Bool);3063 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL)); 3064 3064 sprintf(szKey, "%sDirCnr.%lu.DetailsAttr", szPrefix, ulTemp); 3065 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, size Bool);3065 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL)); 3066 3066 sprintf(szKey, "%sDirCnr.%lu.DetailsIcon", szPrefix, ulTemp); 3067 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, size Bool);3067 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL)); 3068 3068 sprintf(szKey, "%sDirCnr.%lu.DetailsLWDate", szPrefix, ulTemp); 3069 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, size Bool);3069 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL)); 3070 3070 sprintf(szKey, "%sDirCnr.%lu.DetailsLWTime", szPrefix, ulTemp); 3071 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, size Bool);3071 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL)); 3072 3072 sprintf(szKey, "%sDirCnr.%lu.DetailsLADate", szPrefix, ulTemp); 3073 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, size Bool);3073 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL)); 3074 3074 sprintf(szKey, "%sDirCnr.%lu.DetailsLATime", szPrefix, ulTemp); 3075 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, size Bool);3075 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL)); 3076 3076 sprintf(szKey, "%sDirCnr.%lu.DetailsCRDate", szPrefix, ulTemp); 3077 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, size Bool);3077 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL)); 3078 3078 sprintf(szKey, "%sDirCnr.%lu.DetailsCRTime", szPrefix, ulTemp); 3079 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, size Bool);3079 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL)); 3080 3080 sprintf(szKey, "%sDirCnrDir.%lu", szPrefix, ulTemp); 3081 3081 PrfWriteProfileString(fmprof, FM3Str, szKey, NULL); … … 3085 3085 sprintf(szKey, "%sNumDirsLastTime", szPrefix); 3086 3086 if (numsaves) { 3087 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & numsaves, size Ulong);3087 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & numsaves, sizeof(ULONG)); 3088 3088 WinQueryWindowPos(WinQueryWindow(hwndClient, QW_PARENT), &swp); 3089 3089 sprintf(szKey, "%sMySizeLastTime", szPrefix); … … 3095 3095 } 3096 3096 else if (fIsShutDownState) { 3097 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & numsaves, size Ulong);3097 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & numsaves, sizeof(ULONG)); 3098 3098 } 3099 3099 … … 3244 3244 } 3245 3245 sprintf(szKey, "%sNumDirsLastTime", szPrefix); 3246 size = sizeof(ULONG); 3246 3247 if (PrfQueryProfileData(fmprof, 3247 FM3Str, szKey, (PVOID) &numsaves, &size Ulong)) {3248 FM3Str, szKey, (PVOID) &numsaves, &size)) { 3248 3249 if (fDeleteState) 3249 3250 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); … … 3268 3269 localdcd.ds.detailslongname = dsDirCnrDefault.detailslongname; // Set default 3269 3270 sprintf(szKey, "%sDirCnr.%lu.DetailsLongname", szPrefix, x); 3271 size = sizeof(BOOL); 3270 3272 if (PrfQueryProfileData(fmprof, 3271 3273 FM3Str, 3272 3274 szKey, 3273 3275 (PVOID) &localdcd.ds.detailslongname, 3274 &size Bool))3276 &size)) 3275 3277 { 3276 3278 if (fDeleteState) … … 3283 3285 szKey, 3284 3286 (PVOID) &localdcd.ds.detailssubject, 3285 &size Bool))3287 &size)) 3286 3288 { 3287 3289 if (fDeleteState) … … 3294 3296 szKey, 3295 3297 (PVOID) &localdcd.ds.detailsea, 3296 &size Bool))3298 &size)) 3297 3299 { 3298 3300 if (fDeleteState) … … 3305 3307 szKey, 3306 3308 (PVOID) &localdcd.ds.detailssize, 3307 &size Bool))3309 &size)) 3308 3310 { 3309 3311 if (fDeleteState) … … 3316 3318 szKey, 3317 3319 (PVOID) &localdcd.ds.detailsicon, 3318 &size Bool))3320 &size)) 3319 3321 { 3320 3322 if (fDeleteState) … … 3327 3329 szKey, 3328 3330 (PVOID) &localdcd.ds.detailsattr, 3329 &size Bool))3331 &size)) 3330 3332 { 3331 3333 if (fDeleteState) … … 3338 3340 szKey, 3339 3341 (PVOID) &localdcd.ds.detailscrdate, 3340 &size Bool))3342 &size)) 3341 3343 { 3342 3344 if (fDeleteState) … … 3349 3351 szKey, 3350 3352 (PVOID) &localdcd.ds.detailscrtime, 3351 &size Bool))3353 &size)) 3352 3354 { 3353 3355 if (fDeleteState) … … 3360 3362 szKey, 3361 3363 (PVOID) &localdcd.ds.detailslwdate, 3362 &size Bool))3364 &size)) 3363 3365 { 3364 3366 if (fDeleteState) … … 3371 3373 szKey, 3372 3374 (PVOID) &localdcd.ds.detailslwtime, 3373 &size Bool))3375 &size)) 3374 3376 { 3375 3377 if (fDeleteState) … … 3382 3384 szKey, 3383 3385 (PVOID) &localdcd.ds.detailsladate, 3384 &size Bool))3386 &size)) 3385 3387 { 3386 3388 if (fDeleteState) … … 3393 3395 szKey, 3394 3396 (PVOID) &localdcd.ds.detailslatime, 3395 &size Bool))3397 &size)) 3396 3398 { 3397 3399 if (fDeleteState) … … 3437 3439 dcd->ds.detailslwtime = localdcd.ds.detailslwtime ; 3438 3440 sprintf(szKey, "%sDirCnrSort.%lu", szPrefix, x); 3441 size = sizeof(INT); 3439 3442 if (PrfQueryProfileData(fmprof, 3440 3443 FM3Str, 3441 3444 szKey, 3442 3445 (PVOID) &dcd->sortFlags, 3443 &size Int)) {3446 &size)) { 3444 3447 if (!dcd->sortFlags) 3445 3448 dcd->sortFlags = SORT_PATHNAME; … … 3462 3465 sprintf(szKey, "%sDirCnrView.%lu", szPrefix, x); 3463 3466 if (!noview) { 3467 size = sizeof(ULONG); 3464 3468 if (PrfQueryProfileData(fmprof, 3465 3469 FM3Str, 3466 3470 szKey, 3467 3471 (PVOID) &dcd->flWindowAttr, 3468 &size Ulong)) {3472 &size)) { 3469 3473 3470 3474 CNRINFO cnri;
Note:
See TracChangeset
for help on using the changeset viewer.