Changeset 8666 in vbox for trunk/src/VBox/Main/MachineImpl.cpp
- Timestamp:
- May 7, 2008 3:24:57 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineImpl.cpp
r8603 r8666 7460 7460 NOREF (rc); 7461 7461 7462 mParent->host()->detachAllUSBDevices (this, true /* aDone */, true /* aAbnormal */); 7462 USBProxyService *service = mParent->host()->usbProxyService(); 7463 if (service) 7464 service->detachAllDevicesFromVM (this, true /* aDone */, true /* aAbnormal */); 7463 7465 } 7464 7466 #endif /* VBOX_WITH_USB */ … … 7662 7664 7663 7665 #ifdef VBOX_WITH_USB 7664 /* if cautureUSBDevice() fails, it must have set extended error info */ 7665 return mParent->host()->captureUSBDevice (this, aId); 7666 /* if captureDeviceForVM() fails, it must have set extended error info */ 7667 MultiResult rc = mParent->host()->checkUSBProxyService(); 7668 CheckComRCReturnRC (rc); 7669 7670 USBProxyService *service = mParent->host()->usbProxyService(); 7671 AssertReturn (service, E_FAIL); 7672 return service->captureDeviceForVM (this, aId); 7666 7673 #else 7667 7674 return E_FAIL; … … 7680 7687 7681 7688 #ifdef VBOX_WITH_USB 7682 return mParent->host()->detachUSBDevice (this, aId, aDone); 7689 USBProxyService *service = mParent->host()->usbProxyService(); 7690 AssertReturn (service, E_FAIL); 7691 return service->detachDeviceFromVM (this, aId, aDone); 7683 7692 #else 7684 7693 return E_FAIL; … … 7706 7715 NOREF (rc); 7707 7716 7708 return mParent->host()->autoCaptureUSBDevices (this); 7717 USBProxyService *service = mParent->host()->usbProxyService(); 7718 AssertReturn (service, E_FAIL); 7719 return service->autoCaptureDevicesForVM (this); 7709 7720 #else 7710 7721 return S_OK; … … 7734 7745 NOREF (rc); 7735 7746 7736 return mParent->host()->detachAllUSBDevices (this, aDone, false /* aAbnormal */); 7747 USBProxyService *service = mParent->host()->usbProxyService(); 7748 AssertReturn (service, E_FAIL); 7749 return service->detachAllDevicesFromVM (this, aDone, false /* aAbnormal */); 7737 7750 #else 7738 7751 return S_OK;
Note:
See TracChangeset
for help on using the changeset viewer.