summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorGerd Hoffmann2014-04-25 11:55:32 +0200
committerGerd Hoffmann2014-05-05 12:57:35 +0200
commitf7eaed85559278556cd4573eeb763475c1c2ff9a (patch)
tree637d4830693bc85b35ef0c247d7c4e13858e6848 /hw
parentusb: mtp: fix usb_mtp_add_u64 (diff)
downloadqemu-f7eaed85559278556cd4573eeb763475c1c2ff9a.tar.gz
qemu-f7eaed85559278556cd4573eeb763475c1c2ff9a.tar.xz
qemu-f7eaed85559278556cd4573eeb763475c1c2ff9a.zip
usb: mtp: fix version (is decimal not bcd)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/usb/dev-mtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb/dev-mtp.c b/hw/usb/dev-mtp.c
index 063a426a4f..dff26182c3 100644
--- a/hw/usb/dev-mtp.c
+++ b/hw/usb/dev-mtp.c
@@ -533,7 +533,7 @@ static MTPData *usb_mtp_get_device_info(MTPState *s, MTPControl *c)
trace_usb_mtp_op_get_device_info(s->dev.addr);
- usb_mtp_add_u16(d, 0x0100);
+ usb_mtp_add_u16(d, 100);
usb_mtp_add_u32(d, 0xffffffff);
usb_mtp_add_u16(d, 0x0101);
usb_mtp_add_wstr(d, L"");