VirtualBox

Changeset 44350 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jan 24, 2013 10:51:33 AM (12 years ago)
Author:
vboxsync
Message:

Main: machine folder name sanitising was not working in release builds, code adjustment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp

    r44349 r44350  
    15271527          0xa0, 0xd7af, '\0' };
    15281528    char *pszName = strName.mutableRaw();
    1529     if (RTStrPurgeComplementSet(pszName, aCpSet, '_') < 0)
    1530         AssertFailed();
     1529    unsigned cReplacements = RTStrPurgeComplementSet(pszName, aCpSet, '_');
     1530    Assert(cReplacements >= 0);
     1531    NOREF(cReplacements);
    15311532    /* No leading dot or dash. */
    15321533    if (pszName[0] == '.' || pszName[0] == '-')
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