diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2014-09-15 20:30:42 +0200 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2014-09-15 20:30:42 +0200 |
commit | 1eff6cd5d17eb1e877a0658818d2f8ed7c1d40c7 (patch) | |
tree | c3a1832df946cd87d2b36620009b846fc0315be1 /partitionmanager.cpp | |
parent | Include no strict aliasing for MTP (diff) | |
download | android_bootable_recovery-1eff6cd5d17eb1e877a0658818d2f8ed7c1d40c7.tar android_bootable_recovery-1eff6cd5d17eb1e877a0658818d2f8ed7c1d40c7.tar.gz android_bootable_recovery-1eff6cd5d17eb1e877a0658818d2f8ed7c1d40c7.tar.bz2 android_bootable_recovery-1eff6cd5d17eb1e877a0658818d2f8ed7c1d40c7.tar.lz android_bootable_recovery-1eff6cd5d17eb1e877a0658818d2f8ed7c1d40c7.tar.xz android_bootable_recovery-1eff6cd5d17eb1e877a0658818d2f8ed7c1d40c7.tar.zst android_bootable_recovery-1eff6cd5d17eb1e877a0658818d2f8ed7c1d40c7.zip |
Diffstat (limited to '')
-rw-r--r-- | partitionmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp index d83518b05..af89e404c 100644 --- a/partitionmanager.cpp +++ b/partitionmanager.cpp @@ -1862,7 +1862,7 @@ int TWPartitionManager::Partition_SDCard(void) { #else TWPartition* SDCard = Find_Partition_By_Path("/sdcard"); #endif - if (SDCard == NULL) { + if (SDCard == NULL || !SDCard->Removable || SDCard->Has_Data_Media) { LOGERR("Unable to locate device to partition.\n"); return false; } |