Changeset 140c02c in tol


Ignore:
Timestamp:
Apr 26, 2010, 3:40:05 PM (16 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
3f0542d
Parents:
59c9f17
Message:

fixes #894

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@2119 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/bbasic/dir.cpp

    r59c9f17 r140c02c  
    452452{
    453453  if(!path_.HasName()) { return(path_); }
     454  /*
    454455#if defined(UNIX)
    455456  char* ret_path = new char[PATH_MAX];
    … …  
    459460  return BText(ret_path);
    460461#else
     462  */
     463  BText path = GetAbsolutePath(path_);
     464#ifdef WIN32
    461465  static int maxPathLength_ = 2048;
    462466  static char* fName = new char[maxPathLength_];
    463   BText path = GetAbsolutePath(path_);
    464467  int  len = GetLongPathName(path.String(), fName, maxPathLength_-1);
    465468  return(BText(fName,len));
     469#else
     470  return path;
    466471#endif
     472  /*
     473#endif
     474  */
    467475}
    468476
Note: See TracChangeset for help on using the changeset viewer.