mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Masked error returned from idevice_get_device_list() to 16 bits.
This commit is contained in:
parent
afde67471f
commit
cacc347a32
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user