From 14b778db900cd768455b1879465c51e1538b971d Mon Sep 17 00:00:00 2001 From: Alain Frisch Date: Tue, 13 Dec 2011 16:21:10 +0000 Subject: #5420: fix. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11305 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- otherlibs/win32unix/open.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'otherlibs/win32unix/open.c') diff --git a/otherlibs/win32unix/open.c b/otherlibs/win32unix/open.c index 1e3e09a70..74fe8fc92 100644 --- a/otherlibs/win32unix/open.c +++ b/otherlibs/win32unix/open.c @@ -18,18 +18,18 @@ #include "unixsupport.h" #include -static int open_access_flags[12] = { +static int open_access_flags[13] = { GENERIC_READ, GENERIC_WRITE, GENERIC_READ|GENERIC_WRITE, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; -static int open_create_flags[12] = { +static int open_create_flags[13] = { 0, 0, 0, 0, 0, O_CREAT, O_TRUNC, O_EXCL, 0, 0, 0, 0, 0 }; -static int open_share_flags[12] = { +static int open_share_flags[13] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, FILE_SHARE_DELETE -} +}; CAMLprim value unix_open(value path, value flags, value perm) { -- cgit v1.2.3-70-g09d2