Changeset 1438 for trunk/dll/dirsize.c
- Timestamp:
- Jun 28, 2009, 10:47:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/dirsize.c
r1435 r1438 45 45 08 Mar 09 GKY Renamed commafmt.h i18nutil.h 46 46 08 Mar 09 GKY Additional strings move to PCSZs in init.c 47 28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code. 47 48 48 49 ***********************************************************************/ … … 85 86 #include "fortify.h" 86 87 #include "excputil.h" // xbeginthread 88 #include "pathutil.h" // AddBackslashToPath 87 89 88 90 typedef struct … … 151 153 152 154 strcpy(maskstr, pszFileName); 153 if (maskstr[strlen(maskstr) - 1] != '\\') 154 strcat(maskstr, "\\"); 155 AddBackslashToPath(maskstr); 156 //if (maskstr[strlen(maskstr) - 1] != '\\') 157 // strcat(maskstr, "\\"); 155 158 pEndMask = &maskstr[strlen(maskstr)]; // Point after last backslash 156 159 strcat(maskstr, "*"); … … 873 876 memset(szTemp, 0, sizeof(szTemp)); 874 877 strcpy(szTemp, pci->pszFileName); 875 strrev(szTemp); 876 if (*szFileName && *szTemp != '\\') 877 strcat(szFileName, "\\"); 878 strrev(szTemp); 879 AddBackslashToPath(szFileName); 880 //if (*szFileName && *szTemp != '\\') 881 // strcat(szFileName, "\\"); 878 882 strcat(szFileName, szTemp); 879 883 pci = WinSendDlgItemMsg(hwnd, DSZ_CNR, CM_QUERYRECORD, … … 951 955 else 952 956 strcpy(szFileName, pFM2SaveDirectory); 953 sprintf(&szFileName[strlen(szFileName)], " \\%csizes.Rpt",957 sprintf(&szFileName[strlen(szFileName)], "%s%csizes.Rpt", PCSZ_BACKSLASH, 954 958 (pState) ? toupper(*pState->szDirName) : '+'); 955 959 if (export_filename(hwnd, szFileName, FALSE) && *szFileName) {
Note:
See TracChangeset
for help on using the changeset viewer.