summaryrefslogtreecommitdiff
path: root/libusb/os/windows_nt_common.c
diff options
context:
space:
mode:
authorNathan Hjelm <hjelmn@google.com>2019-08-09 08:59:27 -0700
committerNathan Hjelm <hjelmn@google.com>2019-08-09 09:05:02 -0700
commit96a1f3737584b6b3384d0d5e821e8b7fcae8f2cb (patch)
tree81a5fa9316fa7d9b94d09cf39ea0dd481b5707d5 /libusb/os/windows_nt_common.c
parent767eafbf7f93a22ba8d33e77afb11469da597405 (diff)
downloadlibusb-96a1f3737584b6b3384d0d5e821e8b7fcae8f2cb.tar.gz
darwin: fix bugs in the reenumeration of devices
This commit fixes two bugs in device re-enumeration (enumeration after init): - The internal device object (cached device) was being re-used but the user-visible one was not. This would cause the user to get stale data when using the device afer reset. Now the (per libusb spec) the user-visible device object is re-used and updated. - If multiple libusb contexts were active then only the first context was handled correctly. Fixed by moving the cached device search out of process_new_device(). Signed-off-by: Nathan Hjelm <hjelmn@google.com>
Diffstat (limited to 'libusb/os/windows_nt_common.c')
0 files changed, 0 insertions, 0 deletions