summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2016-09-02 01:40:24 +0200
committerEthan Yonker <dees_troy@teamw.in>2016-09-02 01:40:26 +0200
commit724c5148a5bf341479bf943b0c64ce8d40814148 (patch)
tree2160570e3e0c071ff0ea14030e26c7cb49dd87ee /partitionmanager.cpp
parentFix updater binary for 7.0 (diff)
downloadandroid_bootable_recovery-724c5148a5bf341479bf943b0c64ce8d40814148.tar
android_bootable_recovery-724c5148a5bf341479bf943b0c64ce8d40814148.tar.gz
android_bootable_recovery-724c5148a5bf341479bf943b0c64ce8d40814148.tar.bz2
android_bootable_recovery-724c5148a5bf341479bf943b0c64ce8d40814148.tar.lz
android_bootable_recovery-724c5148a5bf341479bf943b0c64ce8d40814148.tar.xz
android_bootable_recovery-724c5148a5bf341479bf943b0c64ce8d40814148.tar.zst
android_bootable_recovery-724c5148a5bf341479bf943b0c64ce8d40814148.zip
Diffstat (limited to '')
-rw-r--r--partitionmanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 1c7a9702a..20c2aee7f 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -898,6 +898,7 @@ bool TWPartitionManager::Restore_Partition(PartitionSettings *part_settings) {
for (subpart = Partitions.begin(); subpart != Partitions.end(); subpart++) {
part_settings->Part = *subpart;
if ((*subpart)->Is_SubPartition && (*subpart)->SubPartition_Of == parentPart->Mount_Point) {
+ part_settings->Backup_FileName = (*subpart)->Backup_Name + "." + (*subpart)->Current_File_System + ".win";
part_settings->Part = (*subpart);
if (!(*subpart)->Restore(part_settings)) {
TWFunc::SetPerformanceMode(false);
@@ -968,7 +969,7 @@ int TWPartitionManager::Run_Restore(const string& Restore_Name) {
std::vector<TWPartition*>::iterator subpart;
for (subpart = Partitions.begin(); subpart != Partitions.end(); subpart++) {
- part_settings.Backup_FileName = parentPart->Backup_Name + "." + parentPart->Current_File_System + ".win";
+ part_settings.Backup_FileName = (*subpart)->Backup_Name + "." + (*subpart)->Current_File_System + ".win";
part_settings.Part = *subpart;
if ((*subpart)->Is_SubPartition && (*subpart)->SubPartition_Of == parentPart->Mount_Point) {
if (check_md5 > 0 && !(*subpart)->Check_MD5(&part_settings))