From bedb920903819a9543354396e25c27c0efb51961 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Thu, 1 Sep 2016 18:40:24 -0500 Subject: Fix restore of subpartitions Change-Id: Ie86bc7525a9097b2ab25661e17803b14a7c9ad79 --- partitionmanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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::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)) -- cgit v1.2.3