windows-winusb: ignore virtual Bluetooth adapter provided by VMware (compile fix)

This commit is contained in:
Milanka Ringwald 2018-07-02 15:08:47 +02:00
parent 9d31f827ed
commit 784eb10cc7

View File

@ -944,9 +944,9 @@ static int usb_try_open_device(const char * device_path){
if (!result) goto exit_on_error;
// ignore virtual Bluetooth adapter of VMware
if (usb_is_vmware_bluetooth_adapter(device_path) {
log_info("Ignoring simulated VMware Bluetooth adapter");
usb_free_resources();
if (usb_is_vmware_bluetooth_adapter(device_path)) {
log_info("Ignoring simulated VMware Bluetooth adapter");
usb_free_resources();
return -1;
}