Guest User

Untitled

a guest
Feb 18th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. diff -Naur ocaml-3.12.1.orig/otherlibs/win32unix/open.c ocaml-3.12.1/otherlibs/win32unix/open.c
  2. --- ocaml-3.12.1.orig/otherlibs/win32unix/open.c 2008-01-11 20:13:18.000000000 +0400
  3. +++ ocaml-3.12.1/otherlibs/win32unix/open.c 2011-12-12 10:18:41.598484400 +0400
  4. @@ -57,7 +57,7 @@
  5. attr.bInheritHandle = TRUE;
  6.  
  7. h = CreateFile(String_val(path), fileaccess,
  8. - FILE_SHARE_READ | FILE_SHARE_WRITE, &attr,
  9. + FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, &attr,
  10. filecreate, fileattrib, NULL);
  11. if (h == INVALID_HANDLE_VALUE) {
  12. win32_maperr(GetLastError());
Add Comment
Please, Sign In to add comment