Fix md5 creation from adb backup patch.

Change-Id: Id90da89c4eb50ed695a88f29859d1276ed8d032b
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index eabc5d9..4ba8053 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -480,14 +480,14 @@
 	return 0;
 }
 
-bool TWPartitionManager::Make_MD5(bool generate_md5, string Backup_Folder, string Backup_Filename)
+bool TWPartitionManager::Make_MD5(PartitionSettings *part_settings)
 {
 	string command;
-	string Full_File = Backup_Folder + "/" + Backup_Filename;
+	string Full_File = part_settings->Full_Backup_Path + part_settings->Backup_FileName;
 	string result;
 	twrpDigest md5sum;
 
-	if (!generate_md5)
+	if (!part_settings->generate_md5)
 		return true;
 
 	TWFunc::GUI_Operation_Text(TW_GENERATE_MD5_TEXT, gui_parse_text("{@generating_md51}"));
@@ -566,7 +566,7 @@
 					sync();
 					sync();
 					if (!part_settings->adbbackup) {
-						if (!Make_MD5(part_settings->generate_md5, part_settings->Backup_Folder, (*subpart)->Backup_FileName)) {
+						if (!Make_MD5(part_settings)) {
 							TWFunc::SetPerformanceMode(false);
 							return false;
 						}
@@ -584,11 +584,11 @@
 
 		}
 
-		if (!part_settings->adbbackup) {
-			md5Success = Make_MD5(part_settings->generate_md5, part_settings->Backup_Folder, part_settings->Part->Backup_FileName);
-		}
-		else 
+		if (part_settings->adbbackup) {
 			md5Success = true;
+		}
+		else
+			md5Success = Make_MD5(part_settings);
 		TWFunc::SetPerformanceMode(false);
 
 		return md5Success;
diff --git a/partitions.hpp b/partitions.hpp
index 7052546..fc60021 100644
--- a/partitions.hpp
+++ b/partitions.hpp
@@ -294,7 +294,7 @@
 private:
 	void Setup_Settings_Storage_Partition(TWPartition* Part);                 // Sets up settings storage
 	void Setup_Android_Secure_Location(TWPartition* Part);                    // Sets up .android_secure if needed
-	bool Make_MD5(bool generate_md5, string Backup_Folder, string Backup_Filename); // Generates an MD5 after a backup is made
+	bool Make_MD5(struct PartitionSettings *part_settings); // Generates an MD5 after a backup is made
 	bool Backup_Partition(struct PartitionSettings *part_settings);                  // Backup the partitions based on type
 	void Output_Partition(TWPartition* Part);                                 // Outputs partition details to the log
 	TWPartition* Find_Partition_By_MTP_Storage_ID(unsigned int Storage_ID);   // Returns a pointer to a partition based on MTP Storage ID