diff --git a/mac/hid.c b/mac/hid.c index 2f9282c..47ad049 100644 --- a/mac/hid.c +++ b/mac/hid.c @@ -291,10 +291,10 @@ static int get_string_property(IOHIDDeviceRef device, CFStringRef prop, wchar_t &used_buf_len); buf[chars_copied] = 0; - return chars_copied; + return 0; } else - return 0; + return -1; }