Changeset 1438 for trunk/dll/fm2cmd.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/fm2cmd.c

    r1402 r1438  
    1010
    1111  20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat
     12  28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code.
    1213
    1314***********************************************************************/
     
    3132#include "misc.h"                       // PostMsg
    3233#include "delims.h"                     // skip_delim
     34#include "pathutil.h"                   // AddBackslashToPath
    3335
    3436
     
    5557    if (*name != '\\' && *name != '/') {
    5658      strcpy(temp, directory);
    57       if (directory[strlen(directory) - 1] != '\\')
    58         strcat(temp, "\\");
     59      AddBackslashToPath(directory);
     60      //if (directory[strlen(directory) - 1] != '\\')
     61      //  strcat(temp, "\\");
    5962    }
    6063    else {
Note: See TracChangeset for help on using the changeset viewer.