summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-12-29 16:15:37 +0100
committerDees Troy <dees_troy@teamw.in>2014-12-29 16:25:32 +0100
commit4bfabab005bac62373b80407136b75509b8b57db (patch)
tree131dadbfff9de6fad82dbdc351d2531ca1cce355 /partitionmanager.cpp
parentIngore SIGPIPE errors (diff)
downloadandroid_bootable_recovery-4bfabab005bac62373b80407136b75509b8b57db.tar
android_bootable_recovery-4bfabab005bac62373b80407136b75509b8b57db.tar.gz
android_bootable_recovery-4bfabab005bac62373b80407136b75509b8b57db.tar.bz2
android_bootable_recovery-4bfabab005bac62373b80407136b75509b8b57db.tar.lz
android_bootable_recovery-4bfabab005bac62373b80407136b75509b8b57db.tar.xz
android_bootable_recovery-4bfabab005bac62373b80407136b75509b8b57db.tar.zst
android_bootable_recovery-4bfabab005bac62373b80407136b75509b8b57db.zip
Diffstat (limited to '')
-rw-r--r--partitionmanager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 003dcd1f3..be6674b88 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -2015,6 +2015,8 @@ bool TWPartitionManager::Add_Remove_MTP_Storage(TWPartition* Part, int message_t
}
if (Part) {
+ if (Part->MTP_Storage_ID == 0)
+ return false;
if (message_type == MTP_MESSAGE_REMOVE_STORAGE) {
mtp_message.message_type = MTP_MESSAGE_REMOVE_STORAGE; // Remove
LOGINFO("sending message to remove %i\n", Part->MTP_Storage_ID);