projects
/
platform
/
upstream
/
libusb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b30ca14
)
Windows: Mark interfaces as unused when releasing
author
Pete Batard
<pbatard@gmail.com>
Thu, 5 Aug 2010 00:18:32 +0000
(18:18 -0600)
committer
Daniel Drake
<dan@reactivated.net>
Thu, 5 Aug 2010 00:18:32 +0000
(18:18 -0600)
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
patch
|
blob
|
history
diff --git
a/libusb/os/windows_usb.c
b/libusb/os/windows_usb.c
index
03a70fc
..
14c2d7b
100644
(file)
--- 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;
}