Changeset 1438 for trunk/dll/seeall.c


Ignore:
Timestamp:
Jun 28, 2009, 10:47:00 PM (16 years ago)
Author:
Gregg Young
Message:

Improved drivebar changes; Added AddBackslashToPath() to remove repeatative code. replaced "
" with PCSZ variable; ANY_OBJ added the DosAlloc... (experimental)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/seeall.c

    r1433 r1438  
    4848  08 Mar 09 GKY Additional strings move to PCSZs in init.c
    4949  08 Mar 09 GKY Removed variable aurguments from docopyf and unlinkf (not used)
     50  28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code.
    5051
    5152***********************************************************************/
     
    647648              GetPString(IDS_MOVEDTEXT) : GetPString(IDS_COPIEDTEXT);
    648649            if (*path) {
    649               strcpy(newname, path);
    650               if (newname[strlen(newname) - 1] != '\\')
    651                 strcat(newname, "\\");
     650              strcpy(newname, path);
     651              AddBackslashToPath(newname);
     652              //if (newname[strlen(newname) - 1] != '\\')
     653              //  strcat(newname, "\\");
    652654              if (plen)
    653655                p = list[x] + plen;
     
    10581060                                        (*list[x] &&
    10591061                                         list[x][strlen(list[x]) - 1] !=
    1060                                          '\\') ? "\\" : NullStr);
     1062                                         '\\') ? PCSZ_BACKSLASH : NullStr);
    10611063              DosError(FERR_DISABLEHARDERR);
    10621064              if (!error)
Note: See TracChangeset for help on using the changeset viewer.