summaryrefslogtreecommitdiff
path: root/libusb
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-02-25 20:25:54 +0000
committerPete Batard <pbatard@gmail.com>2010-02-25 20:25:54 +0000
commitcd5200d62b26d33a94ef9ad856707c44bd6cf192 (patch)
tree674adc5bdb9180370ce03c19b1544d24e77f4caf /libusb
parent778360b4e96090483a655be7b37d2bc4c398353d (diff)
downloadlibusb-cd5200d62b26d33a94ef9ad856707c44bd6cf192.tar.gz
fixed small issue when HID get feature is not availabler177
Diffstat (limited to 'libusb')
-rw-r--r--libusb/os/windows_usb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libusb/os/windows_usb.c b/libusb/os/windows_usb.c
index 3f404a8..4c21f7c 100644
--- a/libusb/os/windows_usb.c
+++ b/libusb/os/windows_usb.c
@@ -3174,9 +3174,11 @@ static int _hid_get_feature(struct hid_device_priv* dev, HANDLE hid_handle, int
switch (err) {
case ERROR_INVALID_FUNCTION:
r = LIBUSB_ERROR_NOT_FOUND;
+ break;
default:
- usbi_dbg("error %s", windows_error_str(r));
+ usbi_dbg("error %s", windows_error_str(err));
r = LIBUSB_ERROR_OTHER;
+ break;
}
}
safe_free(buf);