diff --git a/platform/windows/hci_transport_h2_winusb.c b/platform/windows/hci_transport_h2_winusb.c index 4860dcec9..ebde80720 100644 --- a/platform/windows/hci_transport_h2_winusb.c +++ b/platform/windows/hci_transport_h2_winusb.c @@ -341,7 +341,7 @@ static bool usb_is_vmware_bluetooth_adapter(const char * device_path){ return (pos > 0); } -static bool usb_device_path_match(uint16_t vendor_id, uint16_t product_id){ +static bool usb_device_path_match(const char * device_path, uint16_t vendor_id, uint16_t product_id){ // construct pid/vid substring char substring[20]; sprintf(substring, "vid_%04x&pid_%04x", vendor_id, product_id); @@ -353,7 +353,7 @@ static bool usb_device_path_match(uint16_t vendor_id, uint16_t product_id){ static bool usb_is_known_bluetooth_device(const char * device_path){ int i; for (i=0; ivendor_id, device->product_id)){ + if (usb_device_path_match( device_path, device->vendor_id, device->product_id)){ return true; } }