libimobiledevice / libirecovery

Library and utility to talk to iBoot/iBSS via USB on Mac OS X, Windows, and Linux
https://libimobiledevice.org
GNU Lesser General Public License v2.1
550 stars 207 forks source link

the caller cannot be notified correctly when the driver string is too similar #91

Closed AiXanadu closed 2 years ago

AiXanadu commented 2 years ago

I now have multiple devices connected to libirecoverage

When I listened, I found that not every device informed me once. During debugging, it is found that the values obtained by SetupDiGetDeviceRegistryProperty(usbDevices, &devinfodata, SPDRP_DRIVER, &sz, (PBYTE)driver, sizeof(driver), NULL) in _irecv_event_handler are too similar (my devices are the same, such as iphonex).

So I modified the code to match the device with ECID (windows only), so that there will be no matching problem.

Signed-off-by: GITHUB 8059826@qq.com