summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/open.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1998-12-02 14:39:27 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1998-12-02 14:39:27 +0000
commit7f9ee6a9955f5217e95c8c65d893fa4e6b905ff2 (patch)
treebf931e2a2b9b26a1bdb9a6b9a715a2fb6fe4be26 /otherlibs/win32unix/open.c
parent3697bff6f7653d8216df9743f70fc2eb44ca88bd (diff)
MAJ portage Win32
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2218 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
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());