Changeset 1438 for trunk/dll/walkem.c
- Timestamp:
- Jun 28, 2009, 10:47:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/walkem.c
r1402 r1438 34 34 19 Jul 08 GKY Replace save_dir2(dir) with pFM2SaveDirectory and use BldFullPathName 35 35 24 Aug 08 GKY Warn full drive on save of .DAT file; prevent loss of existing file 36 28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code. 36 37 37 38 ***********************************************************************/ … … 681 682 sprintf(szTemp, 682 683 "%s%s*", 683 pszPath, (pszPath[strlen(pszPath) - 1] == '\\') ? "" : "\\");684 pszPath, (pszPath[strlen(pszPath) - 1] == '\\') ? NullStr : PCSZ_BACKSLASH); 684 685 DosError(FERR_DISABLEHARDERR); 685 686 if (!DosFindFirst(szTemp, … … 1146 1147 bstrip(szBuffer); 1147 1148 if (*szBuffer) { 1148 strcpy(szBuff, wa->szCurrentPath); 1149 if (szBuff[strlen(szBuff) - 1] != '\\') 1150 strcat(szBuff, "\\"); 1149 strcpy(szBuff, wa->szCurrentPath); 1150 AddBackslashToPath(szBuff); 1151 //if (szBuff[strlen(szBuff) - 1] != '\\') 1152 // strcat(szBuff, "\\"); 1151 1153 strcat(szBuff, szBuffer); 1152 1154 MakeFullName(szBuff); … … 1539 1541 bstrip(szBuffer); 1540 1542 if (*szBuffer) { 1541 strcpy(szBuff, wa->szCurrentPath1); 1542 if (szBuff[strlen(szBuff) - 1] != '\\') 1543 strcat(szBuff, "\\"); 1543 strcpy(szBuff, wa->szCurrentPath1); 1544 AddBackslashToPath(szBuff); 1545 //if (szBuff[strlen(szBuff) - 1] != '\\') 1546 // strcat(szBuff, "\\"); 1544 1547 strcat(szBuff, szBuffer); 1545 1548 MakeFullName(szBuff); … … 1604 1607 bstrip(szBuffer); 1605 1608 if (*szBuffer) { 1606 strcpy(szBuff, wa->szCurrentPath2); 1607 if (szBuff[strlen(szBuff) - 1] != '\\') 1608 strcat(szBuff, "\\"); 1609 strcpy(szBuff, wa->szCurrentPath2); 1610 AddBackslashToPath(szBuff); 1611 //if (szBuff[strlen(szBuff) - 1] != '\\') 1612 // strcat(szBuff, "\\"); 1609 1613 strcat(szBuff, szBuffer); 1610 1614 MakeFullName(szBuff);
Note:
See TracChangeset
for help on using the changeset viewer.