summaryrefslogtreecommitdiff
path: root/lib/parallel_scan.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:24:09 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:24:09 +0200
commit110fc5dee14fc7988f631a158e50d283446aba7a (patch)
tree7c19dfd3bdb8c4636409ec80a38c70499ac006db /lib/parallel_scan.h
parent5.14 (diff)
downloadFreeFileSync-110fc5dee14fc7988f631a158e50d283446aba7a.tar.gz
FreeFileSync-110fc5dee14fc7988f631a158e50d283446aba7a.tar.bz2
FreeFileSync-110fc5dee14fc7988f631a158e50d283446aba7a.zip
5.15
Diffstat (limited to 'lib/parallel_scan.h')
-rw-r--r--lib/parallel_scan.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/parallel_scan.h b/lib/parallel_scan.h
index f04d51b4..5a52e44e 100644
--- a/lib/parallel_scan.h
+++ b/lib/parallel_scan.h
@@ -35,8 +35,9 @@ bool operator<(const DirectoryKey& lhs, const DirectoryKey& rhs)
if (lhs.handleSymlinks_ != rhs.handleSymlinks_)
return lhs.handleSymlinks_ < rhs.handleSymlinks_;
- if (!EqualFilename()(lhs.dirnameFull_, rhs.dirnameFull_))
- return LessFilename()(lhs.dirnameFull_, rhs.dirnameFull_);
+ const int cmpName = cmpFileName(lhs.dirnameFull_, rhs.dirnameFull_);
+ if (cmpName != 0)
+ return cmpName < 0;
return *lhs.filter_ < *rhs.filter_;
}
bgstack15