winusb: Check for ClassGuid changes on re-enumeration
authorTormod Volden <debian.tormod@gmail.com>
Thu, 25 Mar 2021 22:47:27 +0000 (23:47 +0100)
committerNathan Hjelm <hjelmn@google.com>
Fri, 11 Jun 2021 03:06:30 +0000 (21:06 -0600)
commitbb021598078eeea9efdbee131909f62c169a4d75
treedc52241f574996cb3c3556052d798943d7e2aa30
parent66d058150d9844a8556c37de6b5603c9e18a0330
winusb: Check for ClassGuid changes on re-enumeration

Previously only the dev_id (VID/PID/serial) was checked, but if the
bcdDevice has changed, Windows will have re-enumerated the device and
possibly attributed another ClassGuid to it.

Fixes issue #897.
Closes #900

Thanks to Craig Hutchinson for reporting, suggestion and testing.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Signed-off-by: Nathan Hjelm <hjelmn@google.com>
libusb/os/windows_common.h
libusb/os/windows_winusb.c
libusb/version_nano.h