winusb: Ignore missing DeviceInterfaceGUID Closes #948 Signed-off-by: Tormod Volden <debian.tormod@gmail.com> Signed-off-by: Nathan Hjelm <hjelmn@google.com>
diff --git a/libusb/os/windows_winusb.c b/libusb/os/windows_winusb.c index 1fdc703..4ddd3dc 100644 --- a/libusb/os/windows_winusb.c +++ b/libusb/os/windows_winusb.c
@@ -1626,7 +1626,9 @@ s = pRegQueryValueExA(key, "DeviceInterfaceGUID", NULL, ®_type, (LPBYTE)guid_string, &size); pRegCloseKey(key); - if (s != ERROR_SUCCESS) { + if (s == ERROR_FILE_NOT_FOUND) { + break; /* no DeviceInterfaceGUID registered */ + } else if (s != ERROR_SUCCESS) { usbi_warn(ctx, "unexpected error from pRegQueryValueExA for '%s'", dev_id); break; }
diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 6b45e58..ca46981 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h
@@ -1 +1 @@ -#define LIBUSB_NANO 11636 +#define LIBUSB_NANO 11637