修复查找usbscan名字BUG
This commit is contained in:
parent
62fe1bd9bc
commit
d673f83820
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue