Skip to content

Commit

Permalink
Fix regression in SUM mode when no output result file specified
Browse files Browse the repository at this point in the history
  • Loading branch information
idrassi committed Jul 26, 2021
1 parent c3d75c0 commit 8f9ba6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DirHash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8f9ba6e

Please sign in to comment.