Host: Clean up device handle

This commit is contained in:
Joshua Vandaële 2025-06-07 16:43:53 +02:00
parent 185b080f03
commit 241834709b
No known key found for this signature in database
GPG Key ID: 5E8F4E7EDBD390EA

View File

@ -78,8 +78,8 @@ std::string USBHost::GetDeviceNameFromVIDPID(u16 vid, u16 pid)
libusb_get_string_descriptor_ascii(handle, desc.iProduct, buffer, sizeof(buffer)) > 0)
{
device_name = reinterpret_cast<char*>(buffer);
libusb_close(handle);
}
libusb_close(handle);
}
return false;
}