Changeset 78124 in vbox for trunk/src/VBox
- Timestamp:
- Apr 15, 2019 2:29:49 PM (6 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r77910 r78124 2818 2818 Sets associated global extra data. 2819 2819 2820 If you pass @c null or empty string as a key @a value, the given @a key2821 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. 2822 2822 2823 2823 <note> 2824 Key must contain only printable ASCII characters.2824 Key must contain printable (non-control) UTF-8 characters only. 2825 2825 </note> 2826 2826 <note> 2827 2827 Before performing the actual data change, this method will ask all 2828 registered event listener using the2828 registered event listeners using the 2829 2829 <link to="IExtraDataCanChangeEvent"/> 2830 2830 notification for a permission. If one of the listeners refuses the … … 7334 7334 7335 7335 <note> 7336 Key must contain only printable ASCII characters.7336 Key must contain printable (non-control) UTF-8 characters only. 7337 7337 </note> 7338 7338 <note> 7339 7339 Before performing the actual data change, this method will ask all 7340 registered listeners using the7340 registered event listeners using the 7341 7341 <link to="IExtraDataCanChangeEvent"/> 7342 7342 notification for a permission. If one of the listeners refuses the -
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r78122 r78124 4838 4838 HRESULT Machine::setExtraData(const com::Utf8Str &aKey, const com::Utf8Str &aValue) 4839 4839 { 4840 /* Because non-ASCIIcharacters in aKey have caused problems in the settings4840 /* Because control characters in aKey have caused problems in the settings 4841 4841 * they are rejected unless the key should be deleted. */ 4842 4842 if (!aValue.isEmpty()) … … 4845 4845 { 4846 4846 char ch = aKey[i]; 4847 if (RT _C_IS_CNTRL(ch))4847 if (RTLocCIsCntrl(ch)) 4848 4848 return E_INVALIDARG; 4849 4849 } -
trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp
r78122 r78124 126 126 // static leaked (todo: find better place to free it.) 127 127 RWLockHandle *VirtualBox::spMtxNatNetworkNameToRefCountLock; 128 129 128 130 //////////////////////////////////////////////////////////////////////////////// 129 131 // … … 2142 2144 HRESULT rc = S_OK; 2143 2145 2144 /* Because non-ASCIIcharacters in aKey have caused problems in the settings2146 /* Because control characters in aKey have caused problems in the settings 2145 2147 * they are rejected unless the key should be deleted. */ 2146 2148 if (!strValue.isEmpty()) … … 2149 2151 { 2150 2152 char ch = strKey[i]; 2151 if (RT _C_IS_CNTRL(ch))2153 if (RTLocCIsCntrl(ch)) 2152 2154 return E_INVALIDARG; 2153 2155 }
Note:
See TracChangeset
for help on using the changeset viewer.