Set _IOREAD flag in _open_osfhandle

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Changelog:
	wine/dlls/msvcrt/file.c: _open_osfhandle
	Set at least the _IOREAD flag	
-- 
Uwe Bonnes                bon@elektron.ikp.physik.tu-darmstadt.de

Free Software: If you contribute nothing, expect nothing
--
Index: wine/dlls/msvcrt/file.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/file.c,v
retrieving revision 1.28
diff -u -r1.28 file.c
--- wine/dlls/msvcrt/file.c	5 Jul 2002 21:23:07 -0000	1.28
+++ wine/dlls/msvcrt/file.c	7 Jul 2002 18:18:15 -0000
@@ -1053,8 +1053,10 @@
  */
 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;
 }
 


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux