Changeset 140c02c in tol
- Timestamp:
- Apr 26, 2010, 3:40:05 PM (16 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 3f0542d
- Parents:
- 59c9f17
- File:
-
- 1 edited
-
tol/bbasic/dir.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/bbasic/dir.cpp
r59c9f17 r140c02c 452 452 { 453 453 if(!path_.HasName()) { return(path_); } 454 /* 454 455 #if defined(UNIX) 455 456 char* ret_path = new char[PATH_MAX]; … … 459 460 return BText(ret_path); 460 461 #else 462 */ 463 BText path = GetAbsolutePath(path_); 464 #ifdef WIN32 461 465 static int maxPathLength_ = 2048; 462 466 static char* fName = new char[maxPathLength_]; 463 BText path = GetAbsolutePath(path_);464 467 int len = GetLongPathName(path.String(), fName, maxPathLength_-1); 465 468 return(BText(fName,len)); 469 #else 470 return path; 466 471 #endif 472 /* 473 #endif 474 */ 467 475 } 468 476
Note: See TracChangeset
for help on using the changeset viewer.
