From bae69dc090e576773d026c51ae08850ae0243c92 Mon Sep 17 00:00:00 2001 From: Cube Date: Tue, 21 Jun 2022 10:40:41 -0700 Subject: [PATCH] hooklib: usb-emu fix --- src/main/capnhook/hooklib/usb-emu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/capnhook/hooklib/usb-emu.c b/src/main/capnhook/hooklib/usb-emu.c index 29356a5..eb6b6ce 100644 --- a/src/main/capnhook/hooklib/usb-emu.c +++ b/src/main/capnhook/hooklib/usb-emu.c @@ -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++) { tmp = &_cnh_usb_emu_virtdevs[i]; - if (tmp == handle->virtdev) { + if (&tmp->usb_dev_handle == handle) { virtdev = tmp; break; }