VirtualBox

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


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

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

File:
1 edited

Legend:

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

    r44320 r44349  
    15231523     * preferred to remove the space and brackets too).  We also remove all
    15241524     * characters which need UTF-16 surrogate pairs for Windows's benefit. */
    1525 #ifdef RT_STRICT
    15261525    RTUNICP aCpSet[] =
    15271526        { ' ', ' ', '(', ')', '-', '.', '0', '9', 'A', 'Z', 'a', 'z', '_', '_',
    15281527          0xa0, 0xd7af, '\0' };
    1529 #endif
    15301528    char *pszName = strName.mutableRaw();
    1531     Assert(RTStrPurgeComplementSet(pszName, aCpSet, '_') >= 0);
     1529    if (RTStrPurgeComplementSet(pszName, aCpSet, '_') < 0)
     1530        AssertFailed();
    15321531    /* No leading dot or dash. */
    15331532    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