shwong2002 / winusbnet

Automatically exported from code.google.com/p/winusbnet
Other
0 stars 0 forks source link

Marshalling issues: GetDescriptor() Language ID is ushort, not byte #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I was inspecting your code while comparing some marshalling clauses I had 
written for my own (older) WinUSB stuff I had written for some internal thing.  
I noticed for GetDescriptor() the marshal clause was representing the language 
ID as a byte, but it's actually an unsigned short (UInt16):

http://msdn.microsoft.com/en-us/library/windows/hardware/ff540257(v=vs.85).aspx

I'm not a customer of the project so it doesn't affect me but I thought you'd 
like to know.

Original issue reported on code.google.com by adam.pre...@gmail.com on 28 Apr 2012 at 1:42

GoogleCodeExporter commented 9 years ago
Looks like you're right, fixed it in SVN.
Thank you for taking the time to report!

Original comment by madwizar...@gmail.com on 1 May 2012 at 9:25