summaryrefslogtreecommitdiffstats
path: root/partition.cpp
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2017-01-08 20:12:38 +0100
committerDees Troy <dees_troy@teamw.in>2017-01-18 17:49:23 +0100
commit029a82db6cef52af402271cc0920d2c7f532a5ab (patch)
tree25c743f0380381786fa4dd081b56b47abb5b7342 /partition.cpp
parentWhitespace cleanup (diff)
downloadandroid_bootable_recovery-029a82db6cef52af402271cc0920d2c7f532a5ab.tar
android_bootable_recovery-029a82db6cef52af402271cc0920d2c7f532a5ab.tar.gz
android_bootable_recovery-029a82db6cef52af402271cc0920d2c7f532a5ab.tar.bz2
android_bootable_recovery-029a82db6cef52af402271cc0920d2c7f532a5ab.tar.lz
android_bootable_recovery-029a82db6cef52af402271cc0920d2c7f532a5ab.tar.xz
android_bootable_recovery-029a82db6cef52af402271cc0920d2c7f532a5ab.tar.zst
android_bootable_recovery-029a82db6cef52af402271cc0920d2c7f532a5ab.zip
Diffstat (limited to 'partition.cpp')
-rw-r--r--partition.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/partition.cpp b/partition.cpp
index 9ff906154..626c61240 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -2331,7 +2331,7 @@ bool TWPartition::Raw_Read_Write(PartitionSettings *part_settings) {
goto exit;
}
backedup_size += (unsigned long long)(bs);
- Remain = Remain - (unsigned long long)(bs);
+ Remain -= (unsigned long long)(bs);
if (part_settings->progress)
part_settings->progress->UpdateSize(backedup_size);
if (PartitionManager.Check_Backup_Cancel() != 0)
@@ -2398,9 +2398,9 @@ unsigned long long TWPartition::Get_Restore_Size(PartitionSettings *part_setting
}
}
- string Full_FileName, Restore_File_System = Get_Restore_File_System(part_settings);
+ string Full_FileName = part_settings->Backup_Folder + "/" + Backup_FileName;
+ string Restore_File_System = Get_Restore_File_System(part_settings);
- Full_FileName = part_settings->Backup_Folder + "/" + Backup_FileName;
if (Is_Image(Restore_File_System)) {
Restore_Size = TWFunc::Get_File_Size(Full_FileName);
return Restore_Size;