forked from len0rd/rockbox
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
This commit is contained in:
parent
1341ae3a24
commit
be29249bf2
1 changed files with 2 additions and 6 deletions
|
@ -75,11 +75,7 @@ static const struct usb_device_descriptor device_descriptor= {
|
||||||
.bcdDevice = 0x0100,
|
.bcdDevice = 0x0100,
|
||||||
.iManufacturer = 1,
|
.iManufacturer = 1,
|
||||||
.iProduct = 2,
|
.iProduct = 2,
|
||||||
#ifdef USE_ROCKBOX_USB
|
|
||||||
.iSerialNumber = 3,
|
.iSerialNumber = 3,
|
||||||
#else
|
|
||||||
.iSerialNumber = 0,
|
|
||||||
#endif
|
|
||||||
.bNumConfigurations = 1
|
.bNumConfigurations = 1
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -317,7 +313,7 @@ static void set_serial_descriptor(void)
|
||||||
|
|
||||||
/* We need to convert from a little-endian 64-bit int
|
/* We need to convert from a little-endian 64-bit int
|
||||||
into a utf-16 string of hex characters */
|
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;
|
uint32_t x;
|
||||||
int i,j;
|
int i,j;
|
||||||
|
|
||||||
|
@ -330,7 +326,7 @@ static void set_serial_descriptor(void)
|
||||||
x >>= 4;
|
x >>= 4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
usb_string_iSerial.bLength=34;
|
usb_string_iSerial.bLength=50;
|
||||||
}
|
}
|
||||||
#elif defined(HAVE_AS3514)
|
#elif defined(HAVE_AS3514)
|
||||||
static void set_serial_descriptor(void)
|
static void set_serial_descriptor(void)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue