Changeset 1438 for trunk/dll/copyf.c
- Timestamp:
- Jun 28, 2009, 10:47:00 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/dll/copyf.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/copyf.c
r1402 r1438 21 21 19 Jul 08 GKY Modify MakeTempName for use making temp directory names 22 22 08 Mar 09 GKY Removed variable aurguments from docopyf and unlinkf (not used) 23 28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code. 23 24 24 25 ***********************************************************************/ … … 50 51 #include "wrappers.h" // xDosSetPathInfo 51 52 #include "strips.h" // bstrip 52 #include "fortify.h" 53 #include "fortify.h" 54 #include "pathutil.h" // AddBackslashToPath 53 55 54 56 static PSZ pszSrcFile = __FILE__; … … 75 77 char *p, *o; 76 78 77 if (strlen(buffer) > 3 && buffer[strlen(buffer) - 1] != '\\') 78 strcat(buffer, "\\"); 79 80 if (strlen(buffer) > 3) // && buffer[strlen(buffer) - 1] != '\\') 81 AddBackslashToPath(buffer); 82 //strcat(buffer, "\\"); 79 83 p = o = buffer + strlen(buffer); 80 84 switch (type) { … … 282 286 BOOL ZapLongName(char *filename) 283 287 { 284 return WriteLongName(filename, "");288 return WriteLongName(filename, NullStr); 285 289 } 286 290 … … 308 312 else 309 313 ealen = sizeof(FEALIST) + 10; 310 rc = DosAllocMem((PPVOID) & pfealist,311 ealen + 32L, OBJ_TILE | PAG_COMMIT | PAG_READ | PAG_WRITE);314 rc = xDosAllocMem((PPVOID) & pfealist, 315 ealen + 32L, OBJ_TILE | PAG_COMMIT | PAG_READ | PAG_WRITE); 312 316 if (rc) 313 317 Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__, … … 536 540 if (IsFile(newname) != -1 && stricmp(oldname, newname)) { 537 541 strcpy(dir, newname); 538 p = strrchr(dir, '\\'); 539 if (p) 540 *p = 0; 541 strcat(dir, "\\"); 542 AddBackslashToPath(dir); 543 //p = strrchr(dir, '\\'); 544 //if (p) 545 // *p = 0; 546 //strcat(dir, "\\"); 542 547 MakeTempName(dir, NULL, 0); 543 548 if (DosMove(newname, dir))
Note:
See TracChangeset
for help on using the changeset viewer.
