VirtualBox

Changeset 1396 in vbox


Ignore:
Timestamp:
Mar 11, 2007 6:57:26 AM (18 years ago)
Author:
vboxsync
Message:

hack to fix RegistryLocationForSpec issues with /path/to/./components that causes IPC_Init to be called twice if doing auto registration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/io/nsLocalFileOSX.cpp

    r589 r1396  
    13371337  fixedPath.ReplaceSubstring("//", "/");
    13381338
     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
    13391355  // On 10.2, huge paths also crash CFURLGetFSRef()
    13401356  if (fixedPath.Length() > PATH_MAX)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette