Changeset 1066 for trunk/dll/mainwnd.c
- Timestamp:
- Jul 12, 2008, 3:20:00 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/dll/mainwnd.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/mainwnd.c
r1065 r1066 62 62 all the details view settings (both the global variables and those in the 63 63 DIRCNRDATA struct) into a new struct: DETAILS_SETTINGS. 64 12 Jul 08 JBS Ticket 246: Allow saved directory container states to have no directory containers 65 (i.e. just a directory tree container). 64 66 65 67 ***********************************************************************/ … … 3097 3099 sprintf(szKey, "%sNumDirsLastTime", szPrefix); 3098 3100 if (PrfQueryProfileData(fmprof, 3099 FM3Str, szKey, (PVOID) & numsaves, &size) && numsaves) {3101 FM3Str, szKey, (PVOID) & numsaves, &size)) { 3100 3102 if (fDeleteState) 3101 3103 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); … … 4654 4656 // Save 4655 4657 INT nSaved = SaveDirCnrState(hwnd, szStateName); 4656 if (nSaved > 0) {4658 if (nSaved >= 0) { 4657 4659 INT ret = add_setup(szStateName); 4658 4660 if (ret == 0) { … … 4672 4674 hwnd, 4673 4675 GetPString(IDS_WARNINGTEXT), 4674 nSaved == 0 ?4675 "Nothing to save" :4676 4676 "State data save failed"); 4677 4677 WinSetWindowText(hwndStatelist, GetPString(IDS_STATETEXT)); … … 6284 6284 } 6285 6285 } 6286 else if (!numsaves)6287 Runtime_Error2(pszSrcFile, __LINE__, IDS_NODATATEXT);6288 6286 else { 6289 6287 char *pszStateName;
Note:
See TracChangeset
for help on using the changeset viewer.
