Windows: return proper status
authorDoug Johnston <doug.johnston@gmail.com>
Wed, 28 Dec 2016 19:21:04 +0000 (11:21 -0800)
committerChris Dickens <christopher.a.dickens@gmail.com>
Wed, 1 Mar 2017 05:33:55 +0000 (21:33 -0800)
currently always returning `LIBUSB_SUCCESS` even if error was found

Closes #183

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/os/windows_winusb.c
libusb/version_nano.h

index 0dce0ea..92c7234 100644 (file)
@@ -977,7 +977,7 @@ static int cache_config_descriptors(struct libusb_device *dev, HANDLE hub_handle
                        LOOP_BREAK(LIBUSB_ERROR_NO_MEM);
                memcpy(priv->config_descriptor[i], cd_data, cd_data->wTotalLength);
        }
-       return LIBUSB_SUCCESS;
+       return r;
 }
 
 /*
index 7edf2e7..5c17f82 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 11187
+#define LIBUSB_NANO 11188