summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2016-01-26 03:53:47 +0100
committerDees Troy <dees_troy@teamw.in>2016-02-05 18:56:14 +0100
commit1fdcdb7c763b1719ed107834b969c44c3efff968 (patch)
treeeff92c83dbbb51e131f336f8d19780968c4fb438 /partitionmanager.cpp
parentpartitions: Mount storage for MTP after wipe (diff)
downloadandroid_bootable_recovery-1fdcdb7c763b1719ed107834b969c44c3efff968.tar
android_bootable_recovery-1fdcdb7c763b1719ed107834b969c44c3efff968.tar.gz
android_bootable_recovery-1fdcdb7c763b1719ed107834b969c44c3efff968.tar.bz2
android_bootable_recovery-1fdcdb7c763b1719ed107834b969c44c3efff968.tar.lz
android_bootable_recovery-1fdcdb7c763b1719ed107834b969c44c3efff968.tar.xz
android_bootable_recovery-1fdcdb7c763b1719ed107834b969c44c3efff968.tar.zst
android_bootable_recovery-1fdcdb7c763b1719ed107834b969c44c3efff968.zip
Diffstat (limited to '')
-rw-r--r--partitionmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 71b6557ce..1c59de7f0 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -1595,7 +1595,7 @@ int TWPartitionManager::usb_storage_enable(void) {
}
sprintf(lun_file, CUSTOM_LUN_FILE, 1);
Mount2 = Find_Next_Storage(Mount1->Mount_Point, true);
- if (Mount2) {
+ if (Mount2 && Mount2->Mount_Point != Mount1->Mount_Point) {
Open_Lun_File(Mount2->Mount_Point, lun_file);
}
} else {