summaryrefslogtreecommitdiffstats
path: root/mtp
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2014-09-04 16:17:44 +0200
committerDees Troy <dees_troy@teamw.in>2014-09-04 16:17:50 +0200
commit53ea0a166c61d7836cdc191f0cbcfaf75b8e8e86 (patch)
tree13ac1e8e18616acc6aa17b47b9572ff8519f3434 /mtp
parentProperly set mtp enable variable if disabled during boot (diff)
downloadandroid_bootable_recovery-53ea0a166c61d7836cdc191f0cbcfaf75b8e8e86.tar
android_bootable_recovery-53ea0a166c61d7836cdc191f0cbcfaf75b8e8e86.tar.gz
android_bootable_recovery-53ea0a166c61d7836cdc191f0cbcfaf75b8e8e86.tar.bz2
android_bootable_recovery-53ea0a166c61d7836cdc191f0cbcfaf75b8e8e86.tar.lz
android_bootable_recovery-53ea0a166c61d7836cdc191f0cbcfaf75b8e8e86.tar.xz
android_bootable_recovery-53ea0a166c61d7836cdc191f0cbcfaf75b8e8e86.tar.zst
android_bootable_recovery-53ea0a166c61d7836cdc191f0cbcfaf75b8e8e86.zip
Diffstat (limited to 'mtp')
-rwxr-xr-xmtp/MtpStorage.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/mtp/MtpStorage.cpp b/mtp/MtpStorage.cpp
index 8a0a4514f..4c1f45642 100755
--- a/mtp/MtpStorage.cpp
+++ b/mtp/MtpStorage.cpp
@@ -460,7 +460,6 @@ int MtpStorage::getObjectPropertyList(MtpObjectHandle handle, uint32_t format, u
MTPD("MtpStorage::getObjectPropertyList handle: %d, format: %d, property: %lx\n", handle, format, property);
if (property == MTP_PROPERTY_OBJECT_FORMAT) {
MTPD("MtpStorage::getObjectPropertyList MTP_PROPERTY_OBJECT_FORMAT\n");
- MTPD("mtpmap count: %d\n", mtpmap.size());
for (iter i = mtpmap.begin(); i != mtpmap.end(); i++) {
MTPD("root: %d\n", i->second->Root());
Node *node = i->second->findNode(handle, i->second->Root());
@@ -558,6 +557,8 @@ int MtpStorage::getObjectPropertyList(MtpObjectHandle handle, uint32_t format, u
// Either the property is not supported or the handle is not on this storage
return -1;
}
+ // handle not found on this storage
+ return -1;
endloop:
MTPD("mtpparentid: %d\n", local_mtpparentid);