Changeset 1159 for trunk/dll/dirs.c


Ignore:
Timestamp:
Sep 5, 2008, 11:41:13 PM (17 years ago)
Author:
John Small
Message:

Ticket 187: Draft 1: Functions only

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/dirs.c

    r907 r1159  
    1717#include <ctype.h>
    1818
    19 #define INCL_LONGLONG                   // dircnrs.h
     19#define INCL_LONGLONG                   // dircnrs.h
    2020
    2121#include "fm3dll.h"
     22#include "dirs.h"
     23#include "valid.h"                      // IsValidDir
    2224
    2325APIRET save_dir2(CHAR * curdir)
     
    3335      env = strrchr(curdir, '\\');
    3436      if (env) {
    35         *env = 0;
    36         if (IsValidDir(curdir))
    37           return 0;
     37        *env = 0;
     38        if (IsValidDir(curdir))
     39          return 0;
    3840      }
    3941    }
     
    5052  *curdir = 0;
    5153  ret = DosQCurDisk(&curdrive, &drivemap);
    52   curdirlen = CCHMAXPATH - 4;           /* NOTE!!!!!!!!! */
     54  curdirlen = CCHMAXPATH - 4;           /* NOTE!!!!!!!!! */
    5355  ret += DosQCurDir(curdrive, &curdir[3], &curdirlen);
    5456  *curdir = (CHAR) ('@' + (INT) curdrive);
     
    7173      p = strrchr(path, '\\');
    7274      if (p)
    73         *p = 0;
     75        *p = 0;
    7476      else {
    75         strcpy(path, s);
    76         break;
     77        strcpy(path, s);
     78        break;
    7779      }
    7880    }
     
    8688    if (!DosQCurDisk(&curdrive, &drivemap)) {
    8789      if ((CHAR) ((CHAR) curdrive + '@') != (CHAR) toupper(*HomePath) &&
    88           (CHAR) ((CHAR) curdrive + '@') != (CHAR) toupper(*path))
    89         DosChDir("\\");
     90          (CHAR) ((CHAR) curdrive + '@') != (CHAR) toupper(*path))
     91        DosChDir("\\");
    9092    }
    9193    ret = DosSelectDisk(toupper(*path) - '@');
Note: See TracChangeset for help on using the changeset viewer.