From 7f9ee6a9955f5217e95c8c65d893fa4e6b905ff2 Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Wed, 2 Dec 1998 14:39:27 +0000 Subject: MAJ portage Win32 git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2218 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- otherlibs/win32unix/open.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'otherlibs/win32unix/open.c') 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()); -- cgit v1.2.3-70-g09d2