From e47849afe9381c864683220eac9ce7bcf43f7883 Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Wed, 4 Aug 2010 18:18:32 -0600 Subject: [PATCH] Windows: Mark interfaces as unused when releasing Without this important cleanup, the autoclaim code could attempt to reuse an unclaimed interface as if it were already claimed. --- libusb/os/windows_usb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libusb/os/windows_usb.c b/libusb/os/windows_usb.c index 03a70fc..14c2d7b 100644 --- a/libusb/os/windows_usb.c +++ b/libusb/os/windows_usb.c @@ -2583,6 +2583,7 @@ static int winusb_release_interface(struct libusb_device_handle *dev_handle, int } WinUsb_Free(winusb_handle); + handle_priv->interface_handle[iface].api_handle = INVALID_HANDLE_VALUE; return LIBUSB_SUCCESS; } -- 2.7.4