Darwin: Add more error checking for libusb_open()
authorNathan Hjelm <hjelmn@me.com>
Wed, 6 Oct 2010 05:11:50 +0000 (23:11 -0600)
committerPeter Stuge <peter@stuge.se>
Mon, 13 Jun 2011 20:01:42 +0000 (22:01 +0200)
commit9bfacd760b40f1137a7835198c6028cbdaddeb18
treeddedf269aeb37083f25f87ae4a53b3aa544eaebf
parent478cd4a30728595fd742aa192d8149ee4216d4bc
Darwin: Add more error checking for libusb_open()

Now also check the CreateDeviceAsyncEventSource() return code for errors.

Signed-off-by: Nathan Hjelm <hjelmn@me.com>
libusb/os/darwin_usb.c