Mac: Fix return value for string functions

get_serial_number()
	get_manufacturer_string()
	get_product_string()

This is to match the documentation in the header file, returning 0 on
success and -1 on error.
This commit is contained in:
Nikolaj Løbner Sheller
2012-02-10 15:55:58 +01:00
committed by Alan Ott
parent 8717b87398
commit a22320f76d
+2 -2
View File
@@ -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;
}