Permalink
Browse files

Add Workaround for ASMedia Controller (by LazyDodo)

  • Loading branch information...
TheRikke committed Aug 21, 2014
1 parent e11525c commit 7519cf106587423e38fe686e4b13f13444629fd0
Showing with 7 additions and 0 deletions.
  1. +7 −0 libusb/os/windows_usb.c
View
@@ -1599,6 +1599,13 @@ static int windows_get_device_list(struct libusb_context *ctx, struct discovered
}
}
char DevLocation[256];
if (pSetupDiGetDeviceRegistryPropertyA(dev_info, &dev_info_data, SPDRP_LOCATION_INFORMATION , &reg_type, (BYTE*)&DevLocation, sizeof(DevLocation), &size)) {
if ((size>=6) && (strncmp(DevLocation,"Port_#",6)==0)) {
port_nr = strtol(DevLocation+6, NULL, 10);
}
}
// Set API to use or get additional data from generic pass
api = USB_API_UNSUPPORTED;
sub_api = SUB_API_NOTSET;

0 comments on commit 7519cf1

Please sign in to comment.