if md5 check is not selected for subpartitions, don't check it.

Change-Id: I7248c75f17c6f82e098831c297c0662ef6ea289f
This commit is contained in:
bigbiff bigbiff
2014-03-30 14:56:41 -04:00
parent 02a6453b75
commit 0733881369
+1 -1
View File
@@ -871,7 +871,7 @@ int TWPartitionManager::Run_Restore(string Restore_Name) {
for (subpart = Partitions.begin(); subpart != Partitions.end(); subpart++) {
if ((*subpart)->Is_SubPartition && (*subpart)->SubPartition_Of == restore_part->Mount_Point) {
if (!(*subpart)->Check_MD5(Restore_Name))
if (check_md5 > 0 && !(*subpart)->Check_MD5(Restore_Name))
return false;
}
}