View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000072HIDLibDevice propertiespublic2007-09-02 18:032009-01-05 22:45
ReporterBlue Ninja 
Assigned ToBlue Ninja 
PrioritynormalSeverityMinorReproducibilityalways
StatusResolvedResolutionFixed 
PlatformOSOS Version
Product Version0.1.0 
Target Version0.2.0Fixed in Version0.2.0 
Summary0000072: Strange return value for SerialNumberString
DescriptionOn some devices with no serial number, HidD_GetSerialNumberString returns TRUE, and sets a byte buffer with the values 0x04, 0x09. This buffer is supposed to be a unicode string, 2 bytes per character. This results in a funky character (0x0409). Where is this coming from?
Additional InformationI had seen a reference in the Windows DDK that a call to this function for an unsupported language could return the language for which the value is supplied. Perhaps not by coindicence, 0x0409 is the code for US English. But, the string was originally queried for that language, so why the redirect?

Also, how would this be distinguishable from a valid serial number of the same value?

I don't think the unicode string is prefixed by a language ID, since the same functions for GetManufacturerString and GetProductString work without a mystery prefix.
TagsNo tags attached.
Device Vendor ID & Product ID
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
User avatar (0000414)
Blue Ninja (administrator)
2009-01-05 22:45

If the device does not have a SerialNumber string index, the index is 0. Requesting string index 0 returns the language ID. The function has been modified to return Nothing if the result matches string descriptor 0. The only other way to ensure that the value is supported is to check iSerialNumber from the device descriptor, which is currently not implemented.

- Issue History
Date Modified Username Field Change
2007-09-02 18:03 Blue Ninja New Issue
2007-09-02 18:03 Blue Ninja Status New => Assigned
2007-09-02 18:03 Blue Ninja Assigned To => Blue Ninja
2009-01-05 22:45 Blue Ninja Note Added: 0000414
2009-01-05 22:45 Blue Ninja Status Assigned => Resolved
2009-01-05 22:45 Blue Ninja Resolution Open => Fixed
2009-01-05 22:45 Blue Ninja Fixed in Version => 0.2.0


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker