Changeset 59288 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jan 8, 2016 10:43:59 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r59252 r59288 1879 1879 */ 1880 1880 com::SafeIfaceArray<IUSBController> usbCtrls; 1881 hrc = pMachine->COMGETTER(USBControllers)(ComSafeArrayAsOutParam(usbCtrls)); H();1881 hrc = pMachine->COMGETTER(USBControllers)(ComSafeArrayAsOutParam(usbCtrls)); 1882 1882 bool fOhciPresent = false; /**< Flag whether at least one OHCI controller is present. */ 1883 1883 bool fXhciPresent = false; /**< Flag whether at least one XHCI controller is present. */ 1884 1884 1885 for (size_t i = 0; i < usbCtrls.size(); ++i) 1886 { 1887 USBControllerType_T enmCtrlType; 1888 rc = usbCtrls[i]->COMGETTER(Type)(&enmCtrlType); H(); 1889 if (enmCtrlType == USBControllerType_OHCI) 1890 { 1891 fOhciPresent = true; 1892 break; 1893 } 1894 else if (enmCtrlType == USBControllerType_XHCI) 1895 { 1896 fXhciPresent = true; 1897 break; 1898 } 1885 if (SUCCEEDED(hrc)) 1886 { 1887 for (size_t i = 0; i < usbCtrls.size(); ++i) 1888 { 1889 USBControllerType_T enmCtrlType; 1890 rc = usbCtrls[i]->COMGETTER(Type)(&enmCtrlType); H(); 1891 if (enmCtrlType == USBControllerType_OHCI) 1892 { 1893 fOhciPresent = true; 1894 break; 1895 } 1896 else if (enmCtrlType == USBControllerType_XHCI) 1897 { 1898 fXhciPresent = true; 1899 break; 1900 } 1901 } 1902 } 1903 else if (hrc != E_NOTIMPL) 1904 { 1905 H(); 1899 1906 } 1900 1907
Note:
See TracChangeset
for help on using the changeset viewer.