Windows: Check composite interfaces before calling functions
authorChris Dickens <christopher.a.dickens@gmail.com>
Sun, 28 Jan 2018 00:22:10 +0000 (16:22 -0800)
committerChris Dickens <christopher.a.dickens@gmail.com>
Sun, 28 Jan 2018 00:22:10 +0000 (16:22 -0800)
commite5a7bb548a5c3b04a086b62de043f02fdae338b6
tree84449a52605cdb58e8565d413d7adb149d12c6bf
parent84209b4fb54ebc62f5a60f0122bddef3ebd97d0a
Windows: Check composite interfaces before calling functions

Commit c4438b3c introduced a regression by failing to check for the
presence of a function in the backend when called on a composite device.
Fix this by introducing a new helper macro and checking for function
pointers at all necessary locations.

Closes #383

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/os/windows_winusb.c
libusb/os/windows_winusb.h
libusb/version_nano.h