summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mmap/mmap_private.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mmap/mmap_private.c b/mmap/mmap_private.c
index 78dfe64..e03fc4d 100644
--- a/mmap/mmap_private.c
+++ b/mmap/mmap_private.c
@@ -12,7 +12,7 @@ char* mmap_private(const char* filename,size_t * filesize) {
#ifdef _WIN32
HANDLE fd,m;
char* map;
- fd=CreateFile(filename,GENERIC_WRITE|GENERIC_READ,FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE,0,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0);
+ fd=CreateFile(filename,GENERIC_READ,FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE,0,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0);
if (fd==INVALID_HANDLE_VALUE)
return 0;
m=CreateFileMapping(fd,0,PAGE_WRITECOPY,0,0,NULL);