Commit 4ec51d09 authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Alexandre Julliard

_open_osfhandle: set at least the _IOREAD flag.

parent 21a2b606
...@@ -1053,8 +1053,10 @@ int _wcreat(const WCHAR *path, int flags) ...@@ -1053,8 +1053,10 @@ int _wcreat(const WCHAR *path, int flags)
*/ */
int _open_osfhandle(long hand, int flags) int _open_osfhandle(long hand, int flags)
{ {
int fd = msvcrt_alloc_fd(hand,flags); /* _O_RDONLY (0) always matches, so set the read flag*/
TRACE(":handle (%ld) fd (%d)\n",hand,fd); /* FIXME: handle more flags */
int fd= msvcrt_alloc_fd(hand,flags|MSVCRT__IOREAD);
TRACE(":handle (%ld) fd (%d) flags 0x%08x\n",hand,fd, flags |MSVCRT__IOREAD);
return fd; return fd;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment