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

    r1436 r1438  
    8080                saved drive containers.
    8181  06 Jun 09 GKY Add option to show file system type or drive label in tree
     82  28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code.
    8283
    8384***********************************************************************/
     
    281282PCSZ PCSZ_FILLDIRQCURERRTEXT = "DosQCurDisk";
    282283PCSZ PCSZ_NODATA  =  "No Data";
     284PCSZ PCSZ_BACKSLASH     = "\\";
    283285PCSZ PCSZ_STARDOTEXE    =  "*.EXE";
    284286PCSZ PCSZ_STARDOTINI    =  "*.INI";
     
    520522  fcloseall();
    521523  save_dir(s);
    522   if (s[strlen(s) - 1] != '\\')
    523     strcat(s, "\\");
     524  AddBackslashToPath(s);
     525  //if (s[strlen(s) - 1] != '\\')
     526  //  strcat(s, "\\");
    524527  enddir = &s[strlen(s)];
    525528  if (*ArcTempRoot) {
     
    552555  else
    553556    strcpy(s, pFM2SaveDirectory);
    554   if (s[strlen(s) - 1] != '\\')
    555     strcat(s, "\\");
     557  AddBackslashToPath(s);
     558  //if (s[strlen(s) - 1] != '\\')
     559  //  strcat(s, "\\");
    556560  enddir = &s[strlen(s)];
    557561  strcat(s, "$FM2LI$T.");
     
    699703
    700704      strcpy(szTempName, env);
    701       if (szTempName[strlen(szTempName) - 1] != '\\')
    702         strcat(szTempName, "\\");
     705      AddBackslashToPath(szTempName);
     706      //if (szTempName[strlen(szTempName) - 1] != '\\')
     707      //  strcat(szTempName, "\\");
    703708      enddir = &szTempName[strlen(szTempName)];
    704709      strcat(szTempName, "$FM2????.");
Note: See TracChangeset for help on using the changeset viewer.