summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2008-02-27 21:16:49 +0000
committerFrank Gevaerts <frank@gevaerts.be>2008-02-27 21:16:49 +0000
commitbe29249bf2fbf2235804037d283b13bb17cb7717 (patch)
tree64e551422461517696a74123a0825686fde900db
parent1341ae3a248b379432d9921f18f589baa4bacff7 (diff)
downloadrockbox-be29249bf2fbf2235804037d283b13bb17cb7717.tar.gz
rockbox-be29249bf2fbf2235804037d283b13bb17cb7717.tar.bz2
rockbox-be29249bf2fbf2235804037d283b13bb17cb7717.zip
make the ipod serial number 24 characters long. This makes the Vista BSOD go away
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16438 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/usbstack/usb_core.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/firmware/usbstack/usb_core.c b/firmware/usbstack/usb_core.c
index b389b47068..fdfd049002 100644
--- a/firmware/usbstack/usb_core.c
+++ b/firmware/usbstack/usb_core.c
@@ -75,11 +75,7 @@ static const struct usb_device_descriptor device_descriptor= {
.bcdDevice = 0x0100,
.iManufacturer = 1,
.iProduct = 2,
-#ifdef USE_ROCKBOX_USB
.iSerialNumber = 3,
-#else
- .iSerialNumber = 0,
-#endif
.bNumConfigurations = 1
};
@@ -317,7 +313,7 @@ static void set_serial_descriptor(void)
/* We need to convert from a little-endian 64-bit int
into a utf-16 string of hex characters */
- short* p = &usb_string_iSerial.wString[15];
+ short* p = &usb_string_iSerial.wString[23];
uint32_t x;
int i,j;
@@ -330,7 +326,7 @@ static void set_serial_descriptor(void)
x >>= 4;
}
}
- usb_string_iSerial.bLength=34;
+ usb_string_iSerial.bLength=50;
}
#elif defined(HAVE_AS3514)
static void set_serial_descriptor(void)