1
0
mirror of https://github.com/pumpitupdev/pumptools.git synced 2025-02-20 04:01:00 +01:00

hooklib: usb-emu fix

This commit is contained in:
Cube 2022-06-21 10:40:41 -07:00 committed by voidderef
parent 2a24c51281
commit bae69dc090

View File

@ -502,7 +502,7 @@ _cnh_usb_emu_get_virtdev_by_handle(usb_dev_handle *handle)
for (size_t i = 0; i < _cnh_usb_emu_nvirtdevs; i++) { for (size_t i = 0; i < _cnh_usb_emu_nvirtdevs; i++) {
tmp = &_cnh_usb_emu_virtdevs[i]; tmp = &_cnh_usb_emu_virtdevs[i];
if (tmp == handle->virtdev) { if (&tmp->usb_dev_handle == handle) {
virtdev = tmp; virtdev = tmp;
break; break;
} }