* commit 'ca1f8f6d14a144dde64112cd471df5e9539ad521': MTP: Fix getThumbnail
This commit is contained in:
@@ -849,6 +849,7 @@ void* MyMtpDatabase::getThumbnail(MtpObjectHandle handle, size_t& outThumbSize)
|
|||||||
result = malloc(exifdata->size);
|
result = malloc(exifdata->size);
|
||||||
if (result) {
|
if (result) {
|
||||||
memcpy(result, exifdata->data, exifdata->size);
|
memcpy(result, exifdata->data, exifdata->size);
|
||||||
|
outThumbSize = exifdata->size;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
exif_data_unref(exifdata);
|
exif_data_unref(exifdata);
|
||||||
|
|||||||
Reference in New Issue
Block a user