Skip to content

Commit 8e7d166

Browse files
authored
Merge pull request #3687 from dscho/fscache-vs-ignoreCase
Teach FSCache about case-sensitive filenames
2 parents 5437f0f + 97d21a9 commit 8e7d166

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compat/win32/fscache.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "config.h"
66
#include "../../mem-pool.h"
77
#include "ntifs.h"
8+
#include "../../dir.h"
89

910
static volatile long initialized;
1011
static DWORD dwTlsIndex;
@@ -101,7 +102,7 @@ static int fsentry_cmp(void *unused_cmp_data,
101102
/* if list parts are equal, compare len and name */
102103
if (fse1->len != fse2->len)
103104
return fse1->len - fse2->len;
104-
return strnicmp(fse1->dirent.d_name, fse2->dirent.d_name, fse1->len);
105+
return fspathncmp(fse1->dirent.d_name, fse2->dirent.d_name, fse1->len);
105106
}
106107

107108
/*

0 commit comments

Comments
 (0)