@@ -167,10 +167,10 @@ std::shared_ptr<usb_device> usb_registry::create_device_from_device_info(device_
167167 hub_handles[hub_path] = hub_handle;
168168 }
169169
170- return create_device (std::move (device_path), hub_handle, usb_port_num);
170+ return create_device (std::move (device_path), dev_info_set. is_composite_device (), hub_handle, usb_port_num);
171171}
172172
173- std::shared_ptr<usb_device> usb_registry::create_device (std::wstring&& device_path, HANDLE hub_handle, DWORD usb_port_num) {
173+ std::shared_ptr<usb_device> usb_registry::create_device (std::wstring&& device_path, bool is_composite, HANDLE hub_handle, DWORD usb_port_num) {
174174
175175 // get device descriptor
176176 USB_NODE_CONNECTION_INFORMATION_EX conn_info = { 0 };
@@ -186,7 +186,7 @@ std::shared_ptr<usb_device> usb_registry::create_device(std::wstring&& device_pa
186186 auto config_desc = get_descriptor (hub_handle, usb_port_num, USB_CONFIGURATION_DESCRIPTOR_TYPE, 0 , 0 );
187187
188188 // Create new device
189- std::shared_ptr<usb_device> device (new usb_device (this , std::move (device_path), vendorId, productId, config_desc));
189+ std::shared_ptr<usb_device> device (new usb_device (this , std::move (device_path), vendorId, productId, config_desc, is_composite ));
190190 device->set_product_names (
191191 get_string (hub_handle, usb_port_num, conn_info.DeviceDescriptor .iManufacturer ),
192192 get_string (hub_handle, usb_port_num, conn_info.DeviceDescriptor .iProduct ),
0 commit comments