diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 1998-12-02 14:39:27 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 1998-12-02 14:39:27 +0000 |
commit | 7f9ee6a9955f5217e95c8c65d893fa4e6b905ff2 (patch) | |
tree | bf931e2a2b9b26a1bdb9a6b9a715a2fb6fe4be26 /stdlib/headernt.c | |
parent | 3697bff6f7653d8216df9743f70fc2eb44ca88bd (diff) |
MAJ portage Win32
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2218 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'stdlib/headernt.c')
-rw-r--r-- | stdlib/headernt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stdlib/headernt.c b/stdlib/headernt.c index 5244431b4..288e2ae1b 100644 --- a/stdlib/headernt.c +++ b/stdlib/headernt.c @@ -70,7 +70,8 @@ int main(int argc, char ** argv) int retcode; GetModuleFileName(NULL, truename, sizeof(truename)); - h = CreateFile(truename, GENERIC_READ, 0, NULL, OPEN_EXISTING, 0, NULL); + h = CreateFile(truename, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, + NULL, OPEN_EXISTING, 0, NULL); if (h == INVALID_HANDLE_VALUE || (runtime_path = read_runtime_path(h)) == NULL) { errwrite(truename); |