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

    r1398 r1438  
    2020  19 Jul 08 GKY Replace save_dir2(dir) with pFM2SaveDirectory and use BldFullPathName
    2121  24 Aug 08 GKY Warn full drive on save of .DAT file; prevent loss of existing file
     22  28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code.
    2223
    2324***********************************************************************/
     
    403404        return 0;
    404405      if (*ex->path) {
    405         strcpy(executable, ex->path);
    406         if (executable[strlen(executable) - 1] != '\\')
    407           strcat(executable, "\\");
     406        strcpy(executable, ex->path);
     407        AddBackslashToPath(executable);
     408        //if (executable[strlen(executable) - 1] != '\\')
     409        //  strcat(executable, "\\");
    408410      }
    409411      else
Note: See TracChangeset for help on using the changeset viewer.