summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2014-04-26 08:46:46 +0200
committerGerrit Code Review <gerrit2@gerrit>2014-05-31 14:23:51 +0200
commitee71706ad1cee8a3ee4231fcc7ef4ce8ab5cc05f (patch)
tree67e8c4bc12a6bae66d093cff2ab1c396e86d7827
parentFix missing closedir() in Find_File::Find_Internal() (diff)
downloadandroid_bootable_recovery-ee71706ad1cee8a3ee4231fcc7ef4ce8ab5cc05f.tar
android_bootable_recovery-ee71706ad1cee8a3ee4231fcc7ef4ce8ab5cc05f.tar.gz
android_bootable_recovery-ee71706ad1cee8a3ee4231fcc7ef4ce8ab5cc05f.tar.bz2
android_bootable_recovery-ee71706ad1cee8a3ee4231fcc7ef4ce8ab5cc05f.tar.lz
android_bootable_recovery-ee71706ad1cee8a3ee4231fcc7ef4ce8ab5cc05f.tar.xz
android_bootable_recovery-ee71706ad1cee8a3ee4231fcc7ef4ce8ab5cc05f.tar.zst
android_bootable_recovery-ee71706ad1cee8a3ee4231fcc7ef4ce8ab5cc05f.zip
-rw-r--r--partitionmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index b947d4307..9d8c27305 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -1573,7 +1573,6 @@ int TWPartitionManager::Open_Lun_File(string Partition_Path, string Lun_File) {
int TWPartitionManager::usb_storage_enable(void) {
int has_dual, has_data_media;
char lun_file[255];
- string ext_path;
bool has_multiple_lun = false;
DataManager::GetValue(TW_HAS_DATA_MEDIA, has_data_media);
@@ -1608,9 +1607,10 @@ int TWPartitionManager::usb_storage_enable(void) {
if (Mount1) {
if (!Open_Lun_File(Mount1->Mount_Point, lun_file))
return false;
+ sprintf(lun_file, CUSTOM_LUN_FILE, 1);
Mount2 = Find_Next_Storage(Mount1->Mount_Point, "/data");
if (Mount2) {
- Open_Lun_File(ext_path, lun_file);
+ Open_Lun_File(Mount2->Mount_Point, lun_file);
}
} else {
LOGERR("Unable to find storage partition to mount to USB\n");