File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -898,6 +898,7 @@ bool TWPartitionManager::Restore_Partition(PartitionSettings *part_settings) {
898898 for (subpart = Partitions.begin (); subpart != Partitions.end (); subpart++) {
899899 part_settings->Part = *subpart;
900900 if ((*subpart)->Is_SubPartition && (*subpart)->SubPartition_Of == parentPart->Mount_Point ) {
901+ part_settings->Backup_FileName = (*subpart)->Backup_Name + " ." + (*subpart)->Current_File_System + " .win" ;
901902 part_settings->Part = (*subpart);
902903 if (!(*subpart)->Restore (part_settings)) {
903904 TWFunc::SetPerformanceMode (false );
@@ -968,7 +969,7 @@ int TWPartitionManager::Run_Restore(const string& Restore_Name) {
968969 std::vector<TWPartition*>::iterator subpart;
969970
970971 for (subpart = Partitions.begin (); subpart != Partitions.end (); subpart++) {
971- part_settings.Backup_FileName = parentPart ->Backup_Name + " ." + parentPart ->Current_File_System + " .win" ;
972+ part_settings.Backup_FileName = (*subpart) ->Backup_Name + " ." + (*subpart) ->Current_File_System + " .win" ;
972973 part_settings.Part = *subpart;
973974 if ((*subpart)->Is_SubPartition && (*subpart)->SubPartition_Of == parentPart->Mount_Point ) {
974975 if (check_md5 > 0 && !(*subpart)->Check_MD5 (&part_settings))
You can’t perform that action at this time.
0 commit comments