Windows: Add SetupAPI error handling
commit8b46e1c088167eb86b1712765896e2f17d70d148
authorPete Batard <pete@akeo.ie>
Mon, 30 Dec 2013 21:32:28 +0000 (30 21:32 +0000)
committerPete Batard <pete@akeo.ie>
Mon, 30 Dec 2013 21:32:28 +0000 (30 21:32 +0000)
treed841d189e0349a8bd868f82f8b53f73b57bd3182
parent28424b945cc5abed182f83ab3fc70676986d7cf3
Windows: Add SetupAPI error handling

* http://msdn.microsoft.com/en-us/library/windows/hardware/ff545011.aspx
  states that SetupAPI errors must be be converted before passing it to FormatMessage().
* Use our own implementation of HRESULT_FROM_SETUPAPI to avoid defining a new function call.
* Issue and original fix suggested by Matthias Bolte
* Closes #166
libusb/os/windows_usb.c
libusb/version_nano.h