From 8f9ba6e18fb95b36b09e825fdad16c50fd5f06d8 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Mon, 26 Jul 2021 23:47:26 +0200 Subject: [PATCH] Fix regression in SUM mode when no output result file specified --- DirHash.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DirHash.cpp b/DirHash.cpp index db97c25..f0d9f03 100644 --- a/DirHash.cpp +++ b/DirHash.cpp @@ -1726,7 +1726,9 @@ DWORD HashDirectory(const CPath& dirPath, Hash* pHash, bool bIncludeNames, bool } else { - if (g_outputFileName.GetAbsolutPathValue().empty() || (0 == _wcsicmp(g_outputFileName.GetAbsolutPathValue().c_str(), entry.GetPath().GetAbsolutPathValue().c_str()))) + if (g_outputFileName.GetAbsolutPathValue().empty()) + g_sumFileSkipped = true; + else if (0 == _wcsicmp(g_outputFileName.GetAbsolutPathValue().c_str(), entry.GetPath().GetAbsolutPathValue().c_str())) { g_sumFileSkipped = true; continue;