修复查找usbscan名字BUG

This commit is contained in:
gb 2022-10-11 16:02:27 +08:00
parent 62fe1bd9bc
commit d673f83820
1 changed files with 1 additions and 1 deletions

View File

@ -427,7 +427,7 @@ std::string usb_device::usb_scan_name(DEVID id, const char* guid)
{ {
val[len] = 0; val[len] = 0;
DEVID cid = usb_device::vid_pid_from_name(val); DEVID cid = usb_device::vid_pid_from_name(val);
if (cid == id) if (cid.vid == id.vid && cid.pid == id.pid)
{ {
len = _countof(val) - 1; len = _countof(val) - 1;
type = REG_SZ; type = REG_SZ;