Ignore:
Timestamp:
Jun 1, 2000, 1:28:48 PM (25 years ago)
Author:
sandervl
Message:

Rewrote file io apis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/directory.cpp

    r3625 r3642  
    1 /* $Id: directory.cpp,v 1.22 2000-05-28 16:45:12 sandervl Exp $ */
     1/* $Id: directory.cpp,v 1.23 2000-06-01 11:28:44 sandervl Exp $ */
    22
    33/*
     
    159159
    160160  strcpy(tmp, lpPathName);
    161   //SvL: Don't remove terminating backslash if it wants to chdir to root dir
    162   if(tmp[len -1] == '\\' && len != 1)
     161  if(tmp[len - 1] == '/') {
     162        tmp[len-1] = '\\';
     163  }
     164  //SvL: Don't remove trailing backslash if it wants to chdir to root dir
     165  if((tmp[len - 1] == '\\')  && len != 1)
    163166    tmp[len -1] = 0;
    164167
Note: See TracChangeset for help on using the changeset viewer.