Just because winusb doesn't seem to support setting a different
configuration, that doesn't mean it's an invalid parameter.
It's generally supported by libusb, just not on this platform.
So return LIBUSB_ERROR_NOT_SUPPORTED instead of
LIBUSB_ERROR_INVALID_PARAM.
Closes #743
Closes #752
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
&& (setup->Request == LIBUSB_REQUEST_SET_CONFIGURATION)) {
if (setup->Value != priv->active_config) {
usbi_warn(TRANSFER_CTX(transfer), "cannot set configuration other than the default one");
- return LIBUSB_ERROR_INVALID_PARAM;
+ return LIBUSB_ERROR_NOT_SUPPORTED;
}
windows_force_sync_completion(overlapped, 0);
} else {
-#define LIBUSB_NANO 11522
+#define LIBUSB_NANO 11523