signal11/hidapi — pull request #61 by cjserio (2012-05-15 19:38:53+00:00)
Title: Fixes for compilation with Windows DDK, fixed bad return type and Mac device reference

There are type definitions that allow compilation without requiring the Windows DDK to be installed for compilation/linking however one of the types used was wrong and when actually compiled against the DDK, it
would fail. Also fixed was a missing retain on the device itself. Lastly, this patch addresses an issue with the return type of HidP_GetCaps which was returning the wrong status code because of the invalid return type of BOOLEAN which is a UCHAR. The return code is supposed to be 0x110000 which obviously doesn't fit in a UCHAR so it was being rounded to 0x0...basically, no return codes were ever making it through that call.