Windows: do not set altsetting 0 as part of libusb_release_interface()
authorPete Batard <pete@akeo.ie>
Mon, 19 Sep 2011 15:01:37 +0000 (16:01 +0100)
committerPeter Stuge <peter@stuge.se>
Mon, 17 Oct 2011 14:25:51 +0000 (16:25 +0200)
* 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

index bf1b9c6..68216db 100644 (file)
@@ -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);
 }