Skip to content

Commit 8f9ba6e

Browse files
committed
Fix regression in SUM mode when no output result file specified
1 parent c3d75c0 commit 8f9ba6e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

DirHash.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1726,7 +1726,9 @@ DWORD HashDirectory(const CPath& dirPath, Hash* pHash, bool bIncludeNames, bool
17261726
}
17271727
else
17281728
{
1729-
if (g_outputFileName.GetAbsolutPathValue().empty() || (0 == _wcsicmp(g_outputFileName.GetAbsolutPathValue().c_str(), entry.GetPath().GetAbsolutPathValue().c_str())))
1729+
if (g_outputFileName.GetAbsolutPathValue().empty())
1730+
g_sumFileSkipped = true;
1731+
else if (0 == _wcsicmp(g_outputFileName.GetAbsolutPathValue().c_str(), entry.GetPath().GetAbsolutPathValue().c_str()))
17301732
{
17311733
g_sumFileSkipped = true;
17321734
continue;

0 commit comments

Comments
 (0)