summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/win32unix/open.c')
-rw-r--r--otherlibs/win32unix/open.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/otherlibs/win32unix/open.c b/otherlibs/win32unix/open.c
index 1acd7f409..b908ca0a5 100644
--- a/otherlibs/win32unix/open.c
+++ b/otherlibs/win32unix/open.c
@@ -53,7 +53,8 @@ value unix_open(value path, value flags, value perm) /* ML */
attr.lpSecurityDescriptor = NULL;
attr.bInheritHandle = TRUE;
- h = CreateFile(String_val(path), fileaccess, 0, &attr,
+ h = CreateFile(String_val(path), fileaccess,
+ FILE_SHARE_READ | FILE_SHARE_WRITE, &attr,
filecreate, fileattrib, NULL);
if (h == INVALID_HANDLE_VALUE) {
_dosmaperr(GetLastError());