fix serial number initialization

This commit is contained in:
NIIBE Yutaka
2011-05-11 16:47:26 +09:00
parent 2fbdeb8d89
commit 995961a593
3 changed files with 6 additions and 4 deletions

View File

@@ -186,7 +186,7 @@ gnuk_device_GetStringDescriptor (uint16_t Length)
{
uint8_t wValue0 = pInformation->USBwValue0;
if (wValue0 > (sizeof (String_Descriptor) / sizeof (ONE_DESCRIPTOR)))
if (wValue0 >= (sizeof (String_Descriptor) / sizeof (ONE_DESCRIPTOR)))
return NULL;
else
return