Changeset 24989 in vbox for trunk/src/VBox/Main/ConsoleImpl.cpp
- Timestamp:
- Nov 26, 2009 11:31:46 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r24955 r24989 1055 1055 // don't lock the folder because methods we access are const 1056 1056 1057 Utf8Str name = folder-> name();1057 Utf8Str name = folder->getName(); 1058 1058 vrc = SSMR3PutU32(pSSM, (uint32_t)name.length() + 1 /* term. 0 */); 1059 1059 AssertRC(vrc); … … 1061 1061 AssertRC(vrc); 1062 1062 1063 Utf8Str hostPath = folder-> hostPath();1063 Utf8Str hostPath = folder->getHostPath(); 1064 1064 vrc = SSMR3PutU32(pSSM, (uint32_t)hostPath.length() + 1 /* term. 0 */); 1065 1065 AssertRC(vrc); … … 1067 1067 AssertRC(vrc); 1068 1068 1069 vrc = SSMR3PutBool(pSSM, !!folder-> writable());1069 vrc = SSMR3PutBool(pSSM, !!folder->isWritable()); 1070 1070 AssertRC(vrc); 1071 1071 } … … 2668 2668 pTask->mProgress.queryInterfaceTo(aProgress); 2669 2669 } 2670 catch (HRESULT rc)2670 catch (HRESULT erc) 2671 2671 { 2672 2672 delete pTask; 2673 NOREF( rc);2673 NOREF(erc); 2674 2674 mptrCancelableProgress.setNull(); 2675 2675 } … … 4792 4792 for (SharedFolderMap::const_iterator it = mSharedFolders.begin(); 4793 4793 it != mSharedFolders.end(); ++ it) 4794 sharedFolders[it->first] = SharedFolderData(it->second-> hostPath(), it->second->writable());4794 sharedFolders[it->first] = SharedFolderData(it->second->getHostPath(), it->second->isWritable()); 4795 4795 } 4796 4796 … … 5194 5194 { 5195 5195 PPDMIBASE pBase; 5196 intvrc = PDMR3QueryLun(mpVM, "usb-ohci", 0, 0, &pBase);5196 vrc = PDMR3QueryLun(mpVM, "usb-ohci", 0, 0, &pBase); 5197 5197 if (RT_SUCCESS(vrc)) 5198 5198 { … … 6061 6061 ComObjPtr<OUSBDevice> device; 6062 6062 device.createObject(); 6063 HRESULThrc = device->init(aHostDevice);6063 hrc = device->init(aHostDevice); 6064 6064 AssertComRC(hrc); 6065 6065 … … 6629 6629 * Mark all existing remote USB devices as dirty. 6630 6630 */ 6631 RemoteUSBDeviceList::iterator it = mRemoteUSBDevices.begin(); 6632 while (it != mRemoteUSBDevices.end()) 6631 for (RemoteUSBDeviceList::iterator it = mRemoteUSBDevices.begin(); 6632 it != mRemoteUSBDevices.end(); 6633 ++it) 6633 6634 { 6634 6635 (*it)->dirty(true); 6635 ++ it;6636 6636 } 6637 6637 … … 6653 6653 bool fNewDevice = true; 6654 6654 6655 it = mRemoteUSBDevices.begin(); 6656 while (it != mRemoteUSBDevices.end()) 6655 for (RemoteUSBDeviceList::iterator it = mRemoteUSBDevices.begin(); 6656 it != mRemoteUSBDevices.end(); 6657 ++it) 6657 6658 { 6658 6659 if ((*it)->devId() == e->id … … 6664 6665 break; 6665 6666 } 6666 6667 ++ it;6668 6667 } 6669 6668 … … 7309 7308 7310 7309 /* Pass all custom parameters. */ 7311 SafeArray<BSTR> names;7312 SafeArray<BSTR> values;7310 SafeArray<BSTR> aNames; 7311 SafeArray<BSTR> aValues; 7313 7312 hrc = medium->GetProperties(NULL, 7314 ComSafeArrayAsOutParam( names),7315 ComSafeArrayAsOutParam( values)); H();7316 7317 if ( names.size() != 0)7313 ComSafeArrayAsOutParam(aNames), 7314 ComSafeArrayAsOutParam(aValues)); H(); 7315 7316 if (aNames.size() != 0) 7318 7317 { 7319 7318 PCFGMNODE pVDC; 7320 7319 rc = CFGMR3InsertNode(pCur, "VDConfig", &pVDC); RC_CHECK(); 7321 for (size_t i = 0; i < names.size(); ++ i)7320 for (size_t i = 0; i < aNames.size(); ++ i) 7322 7321 { 7323 if ( values[i])7322 if (aValues[i]) 7324 7323 { 7325 Utf8Str name = names[i];7326 Utf8Str value = values[i];7324 Utf8Str name = aNames[i]; 7325 Utf8Str value = aValues[i]; 7327 7326 rc = CFGMR3InsertString(pVDC, name.c_str(), value.c_str()); 7328 7327 if ( !(name.compare("HostIPStack")) … … 7508 7507 * to access Console. 7509 7508 */ 7510 intvrc = VMR3ReqCallWait(that->mpVM,7511 7512 7513 7514 7515 7516 7517 7518 7519 7509 vrc = VMR3ReqCallWait(that->mpVM, 7510 VMCPUID_ANY, 7511 (PFNRT)reconfigureMedium, 7512 6, 7513 that->mpVM, 7514 lInstance, 7515 enmController, 7516 enmBus, 7517 atts[i], 7518 &rc); 7520 7519 if (RT_FAILURE(vrc)) 7521 7520 throw setError(E_FAIL, Console::tr("%Rrc"), vrc);
Note:
See TracChangeset
for help on using the changeset viewer.