From be29249bf2fbf2235804037d283b13bb17cb7717 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Wed, 27 Feb 2008 21:16:49 +0000 Subject: [PATCH] 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 --- firmware/usbstack/usb_core.c | 8 ++------ 1 file 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)