summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2019-04-02 22:56:25 +0200
committerEthan Yonker <dees_troy@teamw.in>2019-04-02 22:56:25 +0200
commitc53d520d2b6e04db0c735f1b4c43e4ea27efa309 (patch)
tree3b3c758bf7787781e0c9414f93ac17f837f055a8
parentZip install: this will allow TWRP to check md5 and sha256 checksums (diff)
downloadandroid_bootable_recovery-c53d520d2b6e04db0c735f1b4c43e4ea27efa309.tar
android_bootable_recovery-c53d520d2b6e04db0c735f1b4c43e4ea27efa309.tar.gz
android_bootable_recovery-c53d520d2b6e04db0c735f1b4c43e4ea27efa309.tar.bz2
android_bootable_recovery-c53d520d2b6e04db0c735f1b4c43e4ea27efa309.tar.lz
android_bootable_recovery-c53d520d2b6e04db0c735f1b4c43e4ea27efa309.tar.xz
android_bootable_recovery-c53d520d2b6e04db0c735f1b4c43e4ea27efa309.tar.zst
android_bootable_recovery-c53d520d2b6e04db0c735f1b4c43e4ea27efa309.zip
-rwxr-xr-xtwrpDigestDriver.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/twrpDigestDriver.cpp b/twrpDigestDriver.cpp
index 079d0b8f5..4023c813d 100755
--- a/twrpDigestDriver.cpp
+++ b/twrpDigestDriver.cpp
@@ -69,10 +69,12 @@ bool twrpDigestDriver::Check_File_Digest(const string& Filename) {
#endif
if (!TWFunc::Path_Exists(digestfile)) {
+ delete digest;
if (Filename.find(".zip") == std::string::npos) {
gui_msg(Msg(msg::kError, "no_digest_found=No digest file found for '{1}'. Please unselect Enable Digest verification to restore.")(Filename));
+ } else {
+ return true;
}
- delete digest;
return false;
}