From 06fd4d496c295562682cc2200bbc0d913964f47a Mon Sep 17 00:00:00 2001 From: Sude Date: Fri, 20 May 2016 10:13:20 +0300 Subject: [PATCH] Fix issue caused by 730c1ffe5875d2d7c6d31320f79b0f5be0e85890 Util::getFileHash was called instead of Util::getLocalFileHash This caused librhash error for files that didn't exist --- src/downloader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/downloader.cpp b/src/downloader.cpp index b15cec7..3df51a1 100644 --- a/src/downloader.cpp +++ b/src/downloader.cpp @@ -2559,7 +2559,7 @@ std::string Downloader::getLocalFileHash(const std::string& filepath, const std: Util::createXML(filepath, config.iChunkSize, xml_directory); } - localHash = Util::getFileHash(path.string(), RHASH_MD5); + localHash = Util::getLocalFileHash(config.sXMLDirectory, filepath, gamename); return localHash; }