1
0
mirror of git://sigrok.org/libserialport synced 2023-08-10 21:13:24 +03:00

Fix enumeration on OS X.

This commit is contained in:
Martin Ling 2013-11-04 00:00:05 +00:00 committed by Uwe Hermann
parent c45eb4bee2
commit 0d34b4519c

View File

@ -205,7 +205,7 @@ out_done:
CFDictionarySetValue(classes,
CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes));
if (!(IOServiceGetMatchingServices(master, classes, &iter)))
if (IOServiceGetMatchingServices(master, classes, &iter) != KERN_SUCCESS)
{
ret = SP_ERR_FAIL;
goto out_done;