Changeset 1354 for trunk/dll/rename.c
- Timestamp:
- Dec 25, 2008, 11:43:34 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/dll/rename.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/rename.c
r1226 r1354 17 17 18 18 #include <string.h> 19 #include <ctype.h> 19 20 20 21 #define INCL_WIN … … 36 37 #include "commafmt.h" // CommaFmtULL 37 38 #include "strips.h" // bstrip 39 #include "info.h" // driveflags 38 40 39 41 MRESULT EXPENTRY RenameProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) … … 238 240 CHAR newexist[CCHMAXPATH], fullname[CCHMAXPATH]; 239 241 INT was; 240 APIRET rc; 242 APIRET rc; 243 BOOL fResetVerify = FALSE; 241 244 242 245 *newexist = 0; … … 247 250 strcpy(fullname, newexist); 248 251 was = IsFile(fullname); 249 if (was == -1) { 250 rc = docopyf(MOVE, mv->target, "%s", fullname); 252 if (was == -1) { 253 if (fVerify && (driveflags[toupper(*mv->target) - 'A'] & DRIVE_WRITEVERIFYOFF || 254 driveflags[toupper(*fullname) - 'A'] & DRIVE_WRITEVERIFYOFF)) { 255 DosSetVerify(FALSE); 256 fResetVerify = TRUE; 257 } 258 rc = docopyf(MOVE, mv->target, "%s", fullname); 259 if (fResetVerify) { 260 DosSetVerify(fVerify); 261 fResetVerify = FALSE; 262 } 251 263 if (rc) { 252 264 if ((LONG) rc > 0)
Note:
See TracChangeset
for help on using the changeset viewer.
