mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 19:55:40 +00:00
_open_osfhandle: set at least the _IOREAD flag.
This commit is contained in:
parent
21a2b606fe
commit
4ec51d090a
|
@ -1053,8 +1053,10 @@ int _wcreat(const WCHAR *path, int flags)
|
|||
*/
|
||||
int _open_osfhandle(long hand, int flags)
|
||||
{
|
||||
int fd = msvcrt_alloc_fd(hand,flags);
|
||||
TRACE(":handle (%ld) fd (%d)\n",hand,fd);
|
||||
/* _O_RDONLY (0) always matches, so set the read flag*/
|
||||
/* 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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue