Windows: Fix false assertion failure message during enumeration
authorChris Dickens <christopher.a.dickens@gmail.com>
Mon, 30 May 2016 00:35:09 +0000 (17:35 -0700)
committerChris Dickens <christopher.a.dickens@gmail.com>
Mon, 30 May 2016 00:35:09 +0000 (17:35 -0700)
commit0b947e5f9b2dfffa4def7007f4fb5b23fe2eb05f
tree33255352b28cd4f4c83208404bd746d4d4d7a68b
parent578942b5a90cd36b47b11e0992c2e92a05b70d91
Windows: Fix false assertion failure message during enumeration

Commit 1d54ee1b6687c532eca75925f56eb12e2a34ce42 addressed a device
reference leak but introduced a false warning message that occurs
for devices detected in early enumeration passes (e.g. hubs). The
assertion is meant to warn of a mismatch between parent devices but
fails to account for the fact that some devices that are allocated
early do not have a parent device assigned until the later
enumeration passes.

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/os/windows_winusb.c
libusb/os/windows_winusb.h
libusb/version_nano.h