darwin: Fix invalid GetPipePropertiesV3 argument
authorIdo Yariv <ido@wizery.com>
Wed, 17 Jun 2020 03:22:31 +0000 (23:22 -0400)
committerNathan Hjelm <hjelmn@google.com>
Wed, 17 Jun 2020 04:58:46 +0000 (22:58 -0600)
commitad0473413edec14805e59599ff537eba0f5b8d33
tree8361c5009121d01a089c29197a5f2cdde27ac866
parentbb3773090883409865a40e97a8cabb531fa00683
darwin: Fix invalid GetPipePropertiesV3 argument

GetPipePropertiesV3 seems to require that the bVersion field of the
properties argument be set before calling it:
"Version of the structure. Currently kUSBEndpointPropertiesVersion3.
Need to set this when using this structure"

Not doing so results in an invalid argument error.

Closes #744

Signed-off-by: Ido Yariv <ido@wizery.com>
Signed-off-by: Nathan Hjelm <hjelmn@google.com>
libusb/os/darwin_usb.c
libusb/version_nano.h