From c55f581f43885f8576d8e2ebf4d46cd7ff3c1030 Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Mon, 19 Sep 2011 16:01:37 +0100 Subject: [PATCH] Windows: do not set altsetting 0 as part of libusb_release_interface() * pointed out by Travis Robinson and Xiaofan Chen * similar to a change advised by Alan Stern for the Linux kernel: http://marc.info/?m=122790204410765 --- libusb/os/windows_usb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libusb/os/windows_usb.c b/libusb/os/windows_usb.c index bf1b9c6..68216db 100644 --- a/libusb/os/windows_usb.c +++ b/libusb/os/windows_usb.c @@ -1723,7 +1723,6 @@ static int windows_release_interface(struct libusb_device_handle *dev_handle, in { struct windows_device_priv *priv = _device_priv(dev_handle->dev); - windows_set_interface_altsetting(dev_handle, iface, 0); return priv->apib->release_interface(dev_handle, iface); } -- 2.7.4