Masked error returned from idevice_get_device_list() to 16 bits.

This commit is contained in:
GRiker 2013-05-31 14:05:25 -06:00
parent afde67471f
commit cacc347a32

View File

@ -1276,7 +1276,7 @@ class libiMobileDevice():
udid = c_char * self.UDID_SIZE udid = c_char * self.UDID_SIZE
devices = POINTER(POINTER(udid))() devices = POINTER(POINTER(udid))()
device_list = [] device_list = []
error = self.lib.idevice_get_device_list(byref(devices), byref(count)) error = self.lib.idevice_get_device_list(byref(devices), byref(count)) & 0xFFFF
if error: if error:
if error == -3: if error == -3:
if self.verbose: if self.verbose: