diff options
Diffstat (limited to 'src/common/compat.c')
-rw-r--r-- | src/common/compat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index a55a7e9d4e..a15d09367d 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -199,8 +199,8 @@ tor_mmap_file(const char *filename) res->mmap_handle = NULL; res->file_handle = CreateFile(filename, - GENERIC_READ, - 0, NULL, + GENERIC_READ, FILE_SHARE_READ, + NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0); |