Changeset 51630 in vbox
- Timestamp:
- Jun 17, 2014 12:52:44 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r51614 r51630 2696 2696 Global::stringifyMachineState(mMachineState)); 2697 2697 2698 return mControl->AdoptSavedState(B STR(aSavedStateFile.c_str()));2698 return mControl->AdoptSavedState(Bstr(aSavedStateFile.c_str()).raw()); 2699 2699 } 2700 2700 … … 2828 2828 2829 2829 /* Request the device capture */ 2830 return mControl->CaptureUSBDevice(B STR(aId.toString().c_str()));2830 return mControl->CaptureUSBDevice(Bstr(aId.toString()).raw()); 2831 2831 2832 2832 #else /* !VBOX_WITH_USB */ … … 2867 2867 */ 2868 2868 alock.release(); 2869 HRESULT rc = mControl->DetachUSBDevice(B STR(aId.toString().c_str()), false /* aDone */);2869 HRESULT rc = mControl->DetachUSBDevice(Bstr(aId.toString()).raw(), false /* aDone */); 2870 2870 if (FAILED(rc)) 2871 2871 { … … 2882 2882 /* Request the device release. Even if it fails, the device will 2883 2883 * remain as held by proxy, which is OK for us (the VM process). */ 2884 rc = mControl->DetachUSBDevice(B STR(aId.toString().c_str()), true /* aDone */);2884 rc = mControl->DetachUSBDevice(Bstr(aId.toString()).raw(), true /* aDone */); 2885 2885 } 2886 2886 else … … 2949 2949 rc = devsvec[i]->COMGETTER(Id)(id.asOutParam()); 2950 2950 if (FAILED(rc)) return rc; 2951 if ( id == BSTR(aId.toString().c_str()))2951 if (Utf8Str(id) == aId.toString()) 2952 2952 { 2953 2953 ComObjPtr<OUSBDevice> pUSBDevice; … … 3235 3235 ComObjPtr<IProgress> iProgress; 3236 3236 MachineState_T machineState = MachineState_Null; 3237 HRESULT rc = mControl->DeleteSnapshot((IConsole *)this, B STR(aId.toString().c_str()), BSTR(aId.toString().c_str()), FALSE /* fDeleteAllChildren */, &machineState, iProgress.asOutParam());3237 HRESULT rc = mControl->DeleteSnapshot((IConsole *)this, Bstr(aId.toString()).raw(), Bstr(aId.toString()).raw(), FALSE /* fDeleteAllChildren */, &machineState, iProgress.asOutParam()); 3238 3238 if (FAILED(rc)) return rc; 3239 3239 iProgress.queryInterfaceTo(aProgress.asOutParam()); … … 3255 3255 ComObjPtr<IProgress> iProgress; 3256 3256 MachineState_T machineState = MachineState_Null; 3257 HRESULT rc = mControl->DeleteSnapshot((IConsole *)this, B STR(aId.toString().c_str()), BSTR(aId.toString().c_str()), TRUE /* fDeleteAllChildren */, &machineState, iProgress.asOutParam());3257 HRESULT rc = mControl->DeleteSnapshot((IConsole *)this, Bstr(aId.toString()).raw(), Bstr(aId.toString()).raw(), TRUE /* fDeleteAllChildren */, &machineState, iProgress.asOutParam()); 3258 3258 if (FAILED(rc)) return rc; 3259 3259 iProgress.queryInterfaceTo(aProgress.asOutParam()); … … 3274 3274 ComObjPtr<IProgress> iProgress; 3275 3275 MachineState_T machineState = MachineState_Null; 3276 HRESULT rc = mControl->DeleteSnapshot((IConsole *)this, B STR(aStartId.toString().c_str()), BSTR(aEndId.toString().c_str()), FALSE /* fDeleteAllChildren */, &machineState, iProgress.asOutParam());3276 HRESULT rc = mControl->DeleteSnapshot((IConsole *)this, Bstr(aStartId.toString()).raw(), Bstr(aEndId.toString()).raw(), FALSE /* fDeleteAllChildren */, &machineState, iProgress.asOutParam()); 3277 3277 if (FAILED(rc)) return rc; 3278 3278 iProgress.queryInterfaceTo(aProgress.asOutParam());
Note:
See TracChangeset
for help on using the changeset viewer.