VirtualBox

Changeset 78124 in vbox for trunk


Ignore:
Timestamp:
Apr 15, 2019 2:29:49 PM (6 years ago)
Author:
vboxsync
Message:

Main: Machine+VirtualBox: slightly prettier fix to bugref:9075, including comment adjustments

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r77910 r78124  
    28182818        Sets associated global extra data.
    28192819
    2820         If you pass @c null or empty string as a key @a value, the given @a key
    2821         will be deleted.
     2820        If you pass @c null or an empty string as a key @a value, the given
     2821        @a key will be deleted.
    28222822
    28232823        <note>
    2824           Key must contain only printable ASCII characters.
     2824          Key must contain printable (non-control) UTF-8 characters only.
    28252825        </note>
    28262826        <note>
    28272827          Before performing the actual data change, this method will ask all
    2828           registered event listener using the
     2828          registered event listeners using the
    28292829          <link to="IExtraDataCanChangeEvent"/>
    28302830          notification for a permission. If one of the listeners refuses the
     
    73347334
    73357335        <note>
    7336           Key must contain only printable ASCII characters.
     7336          Key must contain printable (non-control) UTF-8 characters only.
    73377337        </note>
    73387338        <note>
    73397339          Before performing the actual data change, this method will ask all
    7340           registered listeners using the
     7340          registered event listeners using the
    73417341          <link to="IExtraDataCanChangeEvent"/>
    73427342          notification for a permission. If one of the listeners refuses the
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r78122 r78124  
    48384838HRESULT Machine::setExtraData(const com::Utf8Str &aKey, const com::Utf8Str &aValue)
    48394839{
    4840     /* Because non-ASCII characters in aKey have caused problems in the settings
     4840    /* Because control characters in aKey have caused problems in the settings
    48414841     * they are rejected unless the key should be deleted. */
    48424842    if (!aValue.isEmpty())
     
    48454845        {
    48464846            char ch = aKey[i];
    4847             if (RT_C_IS_CNTRL(ch))
     4847            if (RTLocCIsCntrl(ch))
    48484848                return E_INVALIDARG;
    48494849        }
  • trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp

    r78122 r78124  
    126126// static leaked (todo: find better place to free it.)
    127127RWLockHandle *VirtualBox::spMtxNatNetworkNameToRefCountLock;
     128
     129
    128130////////////////////////////////////////////////////////////////////////////////
    129131//
     
    21422144    HRESULT rc = S_OK;
    21432145
    2144     /* Because non-ASCII characters in aKey have caused problems in the settings
     2146    /* Because control characters in aKey have caused problems in the settings
    21452147     * they are rejected unless the key should be deleted. */
    21462148    if (!strValue.isEmpty())
     
    21492151        {
    21502152            char ch = strKey[i];
    2151             if (RT_C_IS_CNTRL(ch))
     2153            if (RTLocCIsCntrl(ch))
    21522154                return E_INVALIDARG;
    21532155        }
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