diff options
author | Simon Haggett <simon.haggett@realvnc.com> | 2013-05-20 12:40:43 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2013-05-24 16:40:00 +0200 |
commit | 4527d16c5c22a0d04f65dfadbb20b8a5d762f5fe (patch) | |
tree | 18934a4fe140661060b8782987ae45a2bec9294a | |
parent | cf641bab1e699d12bb44a35949b8dd12970f6b5e (diff) | |
download | libusb-4527d16c5c22a0d04f65dfadbb20b8a5d762f5fe.tar.gz |
wince_get_active_config_descriptor() sets host_endian incorrectly
wince_get_active_config_descriptor() retrieves configuration descriptors
as raw bytes, in bus-endian order. Therefore, host_endian should be set
to 0 (as in wince_get_config_descriptor()).
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r-- | libusb/os/wince_usb.c | 2 | ||||
-rw-r--r-- | libusb/version_nano.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libusb/os/wince_usb.c b/libusb/os/wince_usb.c index f1f64ac..a9c0ef8 100644 --- a/libusb/os/wince_usb.c +++ b/libusb/os/wince_usb.c @@ -435,7 +435,7 @@ static int wince_get_active_config_descriptor( { struct wince_device_priv *priv = _device_priv(device); DWORD actualSize = len; - *host_endian = 1; + *host_endian = 0; if (!UkwGetConfigDescriptor(priv->dev, UKW_ACTIVE_CONFIGURATION, buffer, len, &actualSize)) { return translate_driver_error(GetLastError()); } diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 2518a03..1195a17 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 10715 +#define LIBUSB_NANO 10716 |