Merge pull request #2 from GRiker/master

Masked error returned from libiMobileDevice:idevice_get_device_list() to 16 bits.
This commit is contained in:
Kovid Goyal 2013-05-31 18:57:18 -07:00
commit 65bf027bcc

View File

@ -1276,7 +1276,7 @@ class libiMobileDevice():
udid = c_char * self.UDID_SIZE
devices = POINTER(POINTER(udid))()
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 == -3:
if self.verbose: