Skip to content

Commit

Permalink
Bugfix in GetDescriptor marshall (Issue #4)
Browse files Browse the repository at this point in the history
  • Loading branch information
madwizard-thomas committed May 1, 2012
1 parent a400145 commit 63526fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions WinUSBNet/API/WinUSBDeviceAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,15 @@ private struct WINUSB_SETUP_PACKET

[DllImport("winusb.dll", SetLastError = true)]
private static extern bool WinUsb_GetDescriptor(IntPtr InterfaceHandle, byte DescriptorType,
byte Index, byte LanguageID, byte[] Buffer, UInt32 BufferLength, out UInt32 LengthTransfered);
byte Index, UInt16 LanguageID, byte[] Buffer, UInt32 BufferLength, out UInt32 LengthTransfered);

[DllImport("winusb.dll", SetLastError = true)]
private static extern bool WinUsb_GetDescriptor(IntPtr InterfaceHandle, byte DescriptorType,
byte Index, byte LanguageID, out USB_DEVICE_DESCRIPTOR deviceDesc, UInt32 BufferLength, out UInt32 LengthTransfered);
byte Index, UInt16 LanguageID, out USB_DEVICE_DESCRIPTOR deviceDesc, UInt32 BufferLength, out UInt32 LengthTransfered);

[DllImport("winusb.dll", SetLastError = true)]
private static extern bool WinUsb_GetDescriptor(IntPtr InterfaceHandle, byte DescriptorType,
byte Index, byte LanguageID, out USB_CONFIGURATION_DESCRIPTOR deviceDesc, UInt32 BufferLength, out UInt32 LengthTransfered);
byte Index, UInt16 LanguageID, out USB_CONFIGURATION_DESCRIPTOR deviceDesc, UInt32 BufferLength, out UInt32 LengthTransfered);

[DllImport("winusb.dll", SetLastError = true)]
private static extern bool WinUsb_GetAssociatedInterface(IntPtr InterfaceHandle, byte AssociatedInterfaceIndex,
Expand Down

0 comments on commit 63526fe

Please sign in to comment.