MTP driver: Fix for SD card causing errors with some devices on linux and OS X

This commit is contained in:
Kovid Goyal 2015-11-11 13:48:40 +05:30
parent e88b27c5fc
commit e0d31bafa7

View File

@ -367,7 +367,7 @@ class MTP_DEVICE(MTPDeviceBase):
ename = name.encode('utf-8') if isinstance(name, unicode) else name
sid, pid = parent.storage_id, parent.object_id
if pid == sid:
pid = 0
pid = 0xFFFFFFFF
ans, errs = self.dev.put_file(sid, pid, ename, stream, size, callback)
if ans is None: