Changeset 1545 for trunk/dll/rename.c


Ignore:
Timestamp:
Oct 24, 2010, 12:00:47 AM (15 years ago)
Author:
Gregg Young
Message:

Added ForwardslashToBackslash function to streamline code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/rename.c

    r1544 r1545  
    1919  08 Mar 09 GKY Removed variable aurguments from docopyf and unlinkf (not used)
    2020  17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
     21  23 Oct 10 GKY Add ForwardslashToBackslash function to streamline code
    2122
    2223***********************************************************************/
     
    4546#include "info.h"                       // driveflags
    4647#include "wrappers.h"                   // xfopen
     48#include "pathutil.h"                   // ForwardslashToBackslash
    4749
    4850static PSZ pszSrcFile = __FILE__;
     
    9799        INT sourceexists = 0, targetexists = 0,
    98100            sourcenewer = 0, sourcesmaller = 0;
    99 
    100         p = mv->target;
    101         while (*p) {
    102           if (*p == '/')
    103             *p = '\\';
    104           p++;
    105         }
     101        ForwardslashToBackslash(mv->target);
    106102        if (!MakeFullName(mv->target))
    107103          WinSetDlgItemText(hwnd, REN_TARGET, mv->target);
Note: See TracChangeset for help on using the changeset viewer.