diff options
author | Pete Batard <pete@akeo.ie> | 2012-08-27 00:16:00 +0100 |
---|---|---|
committer | Pete Batard <pete@akeo.ie> | 2012-08-27 00:16:00 +0100 |
commit | 17cede5ab0ce2a1b01fe3a747833d0647acb911e (patch) | |
tree | d1b495b84664cb5d333137285b517bf3fef03074 | |
parent | 34807a115263ff4fe94b1dc894f93f076e759d5f (diff) | |
download | libusb-17cede5ab0ce2a1b01fe3a747833d0647acb911e.tar.gz |
Windows: Suppress unwanted error message on filter driver
* Interface access error message was unconditional, even if the
filter driver was found later on.
-rw-r--r-- | libusb/os/windows_usb.c | 4 | ||||
-rw-r--r-- | libusb/version_nano.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libusb/os/windows_usb.c b/libusb/os/windows_usb.c index e843bce..d19c732 100644 --- a/libusb/os/windows_usb.c +++ b/libusb/os/windows_usb.c @@ -2699,12 +2699,12 @@ static int winusbx_claim_interface(int sub_api, struct libusb_device_handle *dev } if (!WinUSBX[sub_api].Initialize(file_handle, &winusb_handle)) { - usbi_err(ctx, "could not access interface %d: %s", iface, windows_error_str(0)); handle_priv->interface_handle[iface].api_handle = INVALID_HANDLE_VALUE; switch(GetLastError()) { case ERROR_BAD_COMMAND: // The device was disconnected + usbi_err(ctx, "could not access interface %d: %s", iface, windows_error_str(0)); return LIBUSB_ERROR_NO_DEVICE; default: // it may be that we're using the libusb0 filter driver. @@ -2734,7 +2734,7 @@ static int winusbx_claim_interface(int sub_api, struct libusb_device_handle *dev } } if (!found_filter) { - usbi_err(ctx, "could not claim interface %d: %s", iface, windows_error_str(0)); + usbi_err(ctx, "could not access interface %d: %s", iface, windows_error_str(0)); return LIBUSB_ERROR_ACCESS; } } diff --git a/libusb/version_nano.h b/libusb/version_nano.h index aa88cb4..b79f240 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 10556 +#define LIBUSB_NANO 10557 |