Changeset 1396 in vbox
- Timestamp:
- Mar 11, 2007 6:57:26 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/xpcom/io/nsLocalFileOSX.cpp
r589 r1396 1337 1337 fixedPath.ReplaceSubstring("//", "/"); 1338 1338 1339 #if 1 // bird: hack to fix RegistryLocationForSpec issues with /path/to/./components 1340 fixedPath.ReplaceSubstring("/./", "/"); 1341 size_t len = fixedPath.Length(); 1342 while (len > 2) 1343 { 1344 size_t choplen = 0; 1345 if (!strcmp(fixedPath.get() + len - 2, "/.")) 1346 choplen = 2; 1347 else if (!strcmp(fixedPath.get() + len - 1, "/")) 1348 choplen = 1; 1349 else 1350 break; 1351 fixedPath = StringHead(fixedPath, len - choplen); 1352 } 1353 #endif 1354 1339 1355 // On 10.2, huge paths also crash CFURLGetFSRef() 1340 1356 if (fixedPath.Length() > PATH_MAX)
Note:
See TracChangeset
for help on using the changeset viewer.