Changeset 5742 in vbox for trunk/src/VBox/Main
- Timestamp:
- Nov 14, 2007 1:15:00 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r5741 r5742 1926 1926 STDMETHODIMP Console::AttachUSBDevice (INPTR GUIDPARAM aId) 1927 1927 { 1928 #ifdef VBOX_WITH_USB 1928 1929 AutoCaller autoCaller (this); 1929 1930 CheckComRCReturnRC (autoCaller.rc()); … … 1974 1975 1975 1976 return rc; 1977 1978 #else /* !VBOX_WITH_USB */ 1979 return setError (E_FAIL, 1980 tr ("The virtual machine does not have a USB controller")); 1981 #endif /* !VBOX_WITH_USB */ 1976 1982 } 1977 1983 1978 1984 STDMETHODIMP Console::DetachUSBDevice (INPTR GUIDPARAM aId, IUSBDevice **aDevice) 1979 1985 { 1986 #ifdef VBOX_WITH_USB 1980 1987 if (!aDevice) 1981 1988 return E_POINTER; … … 2004 2011 Guid (aId).raw()); 2005 2012 2006 # ifdef RT_OS_DARWIN2013 # ifdef RT_OS_DARWIN 2007 2014 /* Notify the USB Proxy that we're about to detach the device. Since 2008 2015 * we don't dare do IPC when holding the console lock, so we'll have … … 2019 2026 if (it == mUSBDevices.end()) 2020 2027 return S_OK; 2021 # endif2028 # endif 2022 2029 2023 2030 /* First, request VMM to detach the device */ … … 2036 2043 2037 2044 return rc; 2045 2046 2047 #else /* !VBOX_WITH_USB */ 2048 2049 return setError (E_INVALIDARG, 2050 tr ("USB device with UUID {%Vuuid} is not attached to this machine"), 2051 Guid (aId).raw()); 2052 #endif /* !VBOX_WITH_USB */ 2038 2053 } 2039 2054
Note:
See TracChangeset
for help on using the changeset viewer.