Changeset 1104 for trunk/dll/saveclip.c
- Timestamp:
- Aug 2, 2008, 10:33:03 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/saveclip.c
r1084 r1104 255 255 256 256 BldFullPathName(s, pFM2SaveDirectory, "PATTERNS.DAT"); 257 /*save_dir2(s);258 if (s[strlen(s) - 1] != '\\')259 strcat(s, "\\");260 strcat(s, "PATTERNS.DAT");*/261 257 fp = _fsopen(s, "r", SH_DENYWR); 262 258 if (fp) { … … 286 282 if (sMax > 0) { 287 283 BldFullPathName(szBuffer, pFM2SaveDirectory, "PATTERNS.DAT"); 288 /*save_dir2(szBuffer);289 if (szBuffer[strlen(szBuffer) - 1] != '\\')290 strcat(szBuffer, "\\");291 strcat(szBuffer, "PATTERNS.DAT");*/292 284 fp = xfopen(szBuffer, "w", pszSrcFile, __LINE__); 293 285 if (fp) { … … 307 299 else if (!sMax) { 308 300 BldFullPathName(szBuffer, pFM2SaveDirectory, "PATTERNS.DAT"); 309 /*save_dir2(szBuffer);310 if (szBuffer[strlen(szBuffer) - 1] != '\\')311 strcat(szBuffer, "\\");312 strcat(szBuffer, "PATTERNS.DAT");*/313 301 unlinkf("%s", szBuffer); 314 302 } … … 619 607 620 608 BldFullPathName(s, pFM2SaveDirectory, "PATTERNS.DAT"); 621 /*save_dir2(s);622 if (s[strlen(s) - 1] != '\\')623 strcat(s, "\\");624 strcat(s, "PATTERNS.DAT");*/625 609 fp = _fsopen(s, "r", SH_DENYWR); 626 610 if (fp) { … … 651 635 if (sMax > 0) { 652 636 BldFullPathName(szBuffer, pFM2SaveDirectory, "PATTERNS.DAT"); 653 /*save_dir2(szBuffer);654 if (szBuffer[strlen(szBuffer) - 1] != '\\')655 strcat(szBuffer, "\\");656 strcat(szBuffer, "PATTERNS.DAT");*/657 637 fp = xfopen(szBuffer, "w", pszSrcFile, __LINE__); 658 638 if (fp) { … … 672 652 else if (!sMax) { 673 653 BldFullPathName(szBuffer, pFM2SaveDirectory, "PATTERNS.DAT"); 674 /*save_dir2(szBuffer);675 if (szBuffer[strlen(szBuffer) - 1] != '\\')676 strcat(szBuffer, "\\");677 strcat(szBuffer, "PATTERNS.DAT");*/678 654 unlinkf("%s", szBuffer); 679 655 }
Note:
See TracChangeset
for help on using the changeset viewer.