mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 07:15:28 +01:00
...
This commit is contained in:
parent
e36971f840
commit
59da705c96
1 changed files with 1 additions and 1 deletions
|
|
@ -542,7 +542,7 @@ wpd::get_file(IPortableDevice *device, const wchar_t *object_id, PyObject *dest,
|
|||
return NULL;
|
||||
} else if (SUCCEEDED(hr)) {
|
||||
if (bytes_read > 0) {
|
||||
total_read = total_read + bytes_read;
|
||||
total_read += bytes_read;
|
||||
pyobject_raii res(PyObject_CallMethod(dest, "write", "y#", buf.ptr(), bytes_read));
|
||||
if (!res) { return NULL; }
|
||||
if (callback != NULL) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue