Skip to content

Commit 9f16cdd

Browse files
authored
Merge pull request #2044 from dscho/fscache-gfw
Fix a network drive related bug in the new, fast FSCache
2 parents 9e107c9 + 32e6742 commit 9f16cdd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

compat/win32/fscache.c

+7-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ struct fscache {
2424
unsigned int opendir_requests;
2525
unsigned int fscache_requests;
2626
unsigned int fscache_misses;
27-
WCHAR buffer[64 * 1024];
27+
/*
28+
* 32k wide characters translates to 64kB, which is the maximum that
29+
* Windows 8.1 and earlier can handle. On network drives, not only
30+
* the client's Windows version matters, but also the server's,
31+
* therefore we need to keep this to 64kB.
32+
*/
33+
WCHAR buffer[32 * 1024];
2834
};
2935
static struct trace_key trace_fscache = TRACE_KEY_INIT(FSCACHE);
3036

0 commit comments

Comments
 (0)