diff options
author | Pete Batard <pbatard@gmail.com> | 2010-02-25 20:25:54 +0000 |
---|---|---|
committer | Pete Batard <pbatard@gmail.com> | 2010-02-25 20:25:54 +0000 |
commit | cd5200d62b26d33a94ef9ad856707c44bd6cf192 (patch) | |
tree | 674adc5bdb9180370ce03c19b1544d24e77f4caf | |
parent | 778360b4e96090483a655be7b37d2bc4c398353d (diff) | |
download | libusb-cd5200d62b26d33a94ef9ad856707c44bd6cf192.tar.gz |
fixed small issue when HID get feature is not availabler177
-rw-r--r-- | libusb/os/windows_usb.c | 4 |
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); |