Changeset 21724 in vbox
- Timestamp:
- Jul 20, 2009 1:03:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r21647 r21724 496 496 char *pszPropertyName; 497 497 498 rc = RTStrAPrintf(&pszPropertyName, "/VirtualBox/HostInfo/VRDP/Client/% d/Name", u32ClientId);498 rc = RTStrAPrintf(&pszPropertyName, "/VirtualBox/HostInfo/VRDP/Client/%u/Name", u32ClientId); 499 499 if (RT_SUCCESS(rc)) 500 500 { … … 502 502 mRemoteDisplayInfo->COMGETTER(ClientName)(clientName.asOutParam()); 503 503 504 mMachine->SetGuestProperty Value(Bstr(pszPropertyName), clientName);504 mMachine->SetGuestProperty(Bstr(pszPropertyName), clientName, Bstr("RDONLYGUEST")); 505 505 RTStrFree(pszPropertyName); 506 506 } 507 507 508 rc = RTStrAPrintf(&pszPropertyName, "/VirtualBox/HostInfo/VRDP/Client/% d/User", u32ClientId);508 rc = RTStrAPrintf(&pszPropertyName, "/VirtualBox/HostInfo/VRDP/Client/%u/User", u32ClientId); 509 509 if (RT_SUCCESS(rc)) 510 510 { 511 mMachine->SetGuestProperty Value(Bstr(pszPropertyName), Bstr(pszUser));511 mMachine->SetGuestProperty(Bstr(pszPropertyName), Bstr(pszUser), Bstr("RDONLYGUEST")); 512 512 RTStrFree(pszPropertyName); 513 513 } 514 514 515 rc = RTStrAPrintf(&pszPropertyName, "/VirtualBox/HostInfo/VRDP/Client/% d/Domain", u32ClientId);515 rc = RTStrAPrintf(&pszPropertyName, "/VirtualBox/HostInfo/VRDP/Client/%u/Domain", u32ClientId); 516 516 if (RT_SUCCESS(rc)) 517 517 { 518 mMachine->SetGuestProperty Value(Bstr(pszPropertyName), Bstr(pszDomain));518 mMachine->SetGuestProperty(Bstr(pszPropertyName), Bstr(pszDomain), Bstr("RDONLYGUEST")); 519 519 RTStrFree(pszPropertyName); 520 520 } … … 524 524 if (RT_SUCCESS(rc)) 525 525 { 526 mMachine->SetGuestProperty Value(Bstr("/VirtualBox/HostInfo/VRDP/LastConnectedClient"), Bstr(pszClientId));526 mMachine->SetGuestProperty(Bstr("/VirtualBox/HostInfo/VRDP/LastConnectedClient"), Bstr(pszClientId), Bstr("RDONLYGUEST")); 527 527 RTStrFree(pszClientId); 528 528 } … … 541 541 char *pszPropertyName; 542 542 543 rc = RTStrAPrintf(&pszPropertyName, "/VirtualBox/HostInfo/VRDP/Client/% d/Name", u32ClientId);543 rc = RTStrAPrintf(&pszPropertyName, "/VirtualBox/HostInfo/VRDP/Client/%u/Name", u32ClientId); 544 544 if (RT_SUCCESS(rc)) 545 545 { 546 mMachine->SetGuestProperty Value(Bstr(pszPropertyName), Bstr(""));546 mMachine->SetGuestProperty(Bstr(pszPropertyName), Bstr(""), Bstr("RDONLYGUEST")); 547 547 RTStrFree(pszPropertyName); 548 548 } 549 549 550 rc = RTStrAPrintf(&pszPropertyName, "/VirtualBox/HostInfo/VRDP/Client/% d/User", u32ClientId);550 rc = RTStrAPrintf(&pszPropertyName, "/VirtualBox/HostInfo/VRDP/Client/%u/User", u32ClientId); 551 551 if (RT_SUCCESS(rc)) 552 552 { 553 mMachine->SetGuestProperty Value(Bstr(pszPropertyName), Bstr(""));553 mMachine->SetGuestProperty(Bstr(pszPropertyName), Bstr(""), Bstr("RDONLYGUEST")); 554 554 RTStrFree(pszPropertyName); 555 555 } 556 556 557 rc = RTStrAPrintf(&pszPropertyName, "/VirtualBox/HostInfo/VRDP/Client/% d/Domain", u32ClientId);557 rc = RTStrAPrintf(&pszPropertyName, "/VirtualBox/HostInfo/VRDP/Client/%u/Domain", u32ClientId); 558 558 if (RT_SUCCESS(rc)) 559 559 { 560 mMachine->SetGuestProperty Value(Bstr(pszPropertyName), Bstr(""));560 mMachine->SetGuestProperty(Bstr(pszPropertyName), Bstr(""), Bstr("RDONLYGUEST")); 561 561 RTStrFree(pszPropertyName); 562 562 } … … 566 566 if (RT_SUCCESS(rc)) 567 567 { 568 mMachine->SetGuestProperty Value(Bstr("/VirtualBox/HostInfo/VRDP/LastDisconnectedClient"), Bstr(pszClientId));568 mMachine->SetGuestProperty(Bstr("/VirtualBox/HostInfo/VRDP/LastDisconnectedClient"), Bstr(pszClientId), Bstr("RDONLYGUEST")); 569 569 RTStrFree(pszClientId); 570 570 }
Note:
See TracChangeset
for help on using the changeset viewer.