- Timestamp:
- Nov 18, 2014 9:14:50 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/VRDEServerImpl.cpp
r52959 r53344 376 376 if (FAILED(adep.rc())) return adep.rc(); 377 377 378 Bstr key = aKey;379 380 378 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 381 379 382 380 /* Special processing for some "standard" properties. */ 383 if (key == Bstr("TCP/Ports")) 384 { 385 /* Verify the string. */ 386 int vrc = i_vrdpServerVerifyPortsString(aValue); 381 if (aKey == "TCP/Ports") 382 { 383 /* Verify the string. "0" means the default port. */ 384 Utf8Str strPorts = aValue == "0"? 385 VRDP_DEFAULT_PORT_STR: 386 aValue; 387 int vrc = i_vrdpServerVerifyPortsString(strPorts); 387 388 if (RT_FAILURE(vrc)) 388 389 return E_INVALIDARG; 389 390 390 if ( aValue!= mData->mProperties["TCP/Ports"])391 if (strPorts != mData->mProperties["TCP/Ports"]) 391 392 { 392 393 /* Port value is not verified here because it is up to VRDP transport to … … 395 396 */ 396 397 mData.backup(); 397 if (aValue == Utf8Str("0")) 398 mData->mProperties["TCP/Ports"] = VRDP_DEFAULT_PORT_STR; 399 else 400 mData->mProperties["TCP/Ports"] = aValue; 398 mData->mProperties["TCP/Ports"] = strPorts; 401 399 402 400 /* leave the lock before informing callbacks */
Note:
See TracChangeset
for help on using the changeset viewer.