mirror of
https://github.com/RPCS3/libusb.git
synced 2026-01-31 01:25:19 +01:00
During enumeration, obtaining the port number via SPDRP_ADDRESS might return a bogus value for some third-party HCD drivers. If this occurs, we might end up reporting the device as having the VID/PID from the last successful enumeration. Guard against this particular situation by clearing the USB_NODE_CONNECTION_INFORMATION_EX structure before issuing the DeviceIoControl() call. References #403 Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>