Windows: Ignore any device interface GUIDs beyond the first
authorTormod Volden <debian.tormod@gmail.com>
Sat, 16 Oct 2021 22:13:44 +0000 (00:13 +0200)
committerTormod Volden <debian.tormod@gmail.com>
Sun, 7 Nov 2021 11:48:27 +0000 (12:48 +0100)
commit3178abb79093231f46d7fa544335a58ddd58a324
treedac942fe8ff750e2ce0e08c8eaacbfc5570dddcc
parent8fa0582438d9b624eb5d2c6d0d71821e20897479
Windows: Ignore any device interface GUIDs beyond the first

The NZXT Kraken Z73 device has been reported to brokenly have two
identical device interface GUIDs registered. Accept such cases by
treating the ERROR_MORE_DATA return value as success and processing the
first returned GUID as if it would be the only one.

If one day we see legitimate cases of multiple GUIDs we will need to
deal with them properly.

References jdkvision/libusb#1
Closes #1010

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