diff options
author | Pete Batard <pbatard@gmail.com> | 2010-05-05 23:07:18 +0100 |
---|---|---|
committer | Pete Batard <pbatard@gmail.com> | 2010-05-05 23:07:18 +0100 |
commit | 71eaaccde2c6ff09d3c772f8d99981d20787b2d3 (patch) | |
tree | 8f8a12be46a1ba8c12682330837c135e9b271503 | |
parent | 91f223d55cb434a325d1330ff0f743d87fdcc374 (diff) | |
download | libusb-71eaaccde2c6ff09d3c772f8d99981d20787b2d3.tar.gz |
disabled autoclaim in windows_usb.c and removed its use in xusb.cr275
-rw-r--r-- | examples/xusb.c | 3 | ||||
-rw-r--r-- | libusb/os/windows_usb.c | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/examples/xusb.c b/examples/xusb.c index d2b9a7b..4ebd37a 100644 --- a/examples/xusb.c +++ b/examples/xusb.c @@ -666,8 +666,6 @@ int test_device(uint16_t vid, uint16_t pid) } libusb_free_config_descriptor(conf_desc); - // On Windows, autoclaim will sort things out -#ifndef OS_WINDOWS for (iface = 0; iface < nb_ifaces; iface++) { printf("\nClaiming interface %d...\n", iface); @@ -686,7 +684,6 @@ int test_device(uint16_t vid, uint16_t pid) perr(" Failed.\n"); } } -#endif printf("\nReading string descriptors:\n"); r = libusb_get_string_descriptor(handle, 0, 0, string, 128); diff --git a/libusb/os/windows_usb.c b/libusb/os/windows_usb.c index 09dd8dd..d68d377 100644 --- a/libusb/os/windows_usb.c +++ b/libusb/os/windows_usb.c @@ -29,7 +29,7 @@ // option below is enabled. #define USE_HIDD_FOR_REPORTS // - Should libusb automatically claim the interfaces it requires? -#define AUTO_CLAIM +//#define AUTO_CLAIM // - Forces instant overlapped completion on timeouts: can prevents extensive // wait in poll, after a timeout, but might affect subsequent API calls. // ***USE AT YOUR OWN RISKS*** |