Changeset dcc0498f in tol


Ignore:
Timestamp:
Jun 24, 2010, 1:36:48 PM (16 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
a110589
Parents:
c543d5e
Message:

Refs #921

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/bbasic/dir.cpp

    rc543d5e rdcc0498f  
    451451//--------------------------------------------------------------------
    452452{
    453   if(!path_.HasName()) { return(path_); }
     453//if(!path_.HasName()) { return(path_); }
    454454  /*
    455455#if defined(UNIX)
    … …  
    463463  BText path = GetAbsolutePath(path_);
    464464#ifdef WIN32
    465   static int maxPathLength_ = 2048;
    466   static char* fName = new char[maxPathLength_];
    467   int  len = GetLongPathName(path.String(), fName, maxPathLength_-1);
    468   return(BText(fName,len));
     465  #define maxPathLength_ 10000
     466  static char fName[maxPathLength_];
     467  TCHAR** lppPart={NULL};
     468  int  len = GetFullPathName(path.String(), maxPathLength_-1, fName, lppPart);
     469  path.Copy(fName,len);
     470  path.Replace("\\","/");
     471  return(path);
    469472#else
    470473  return path;
Note: See TracChangeset for help on using the changeset viewer.