suppress use of FILE_READ_xx and FILE_WRITE_xxx defines.
authorjean <jean@svn.reactos.org>
Thu, 18 Jan 2001 15:04:06 +0000 (15:04 +0000)
committerjean <jean@svn.reactos.org>
Thu, 18 Jan 2001 15:04:06 +0000 (15:04 +0000)
not available for CreateFile ?

svn path=/trunk/; revision=1541

reactos/lib/crtdll/io/open.c

index c3a8a6b..fdbc2ef 100644 (file)
@@ -67,15 +67,11 @@ int _open(const char *_path, int _oflag,...)
     * 
     */
    if (( _oflag & _O_RDWR ) == _O_RDWR ) 
-     dwDesiredAccess |= GENERIC_WRITE|GENERIC_READ | FILE_READ_DATA |
-                        FILE_WRITE_DATA | FILE_READ_ATTRIBUTES |
-                        FILE_WRITE_ATTRIBUTES;
+     dwDesiredAccess |= GENERIC_WRITE|GENERIC_READ ;
    else if (( _oflag & O_RDONLY ) == O_RDONLY ) 
-     dwDesiredAccess |= GENERIC_READ | FILE_READ_DATA | FILE_READ_ATTRIBUTES
-                     | FILE_WRITE_ATTRIBUTES;
+     dwDesiredAccess |= GENERIC_READ ;
    else if (( _oflag & _O_WRONLY ) == _O_WRONLY )
-     dwDesiredAccess |= GENERIC_WRITE | FILE_WRITE_DATA | 
-                        FILE_READ_ATTRIBUTES | FILE_WRITE_ATTRIBUTES;
+     dwDesiredAccess |= GENERIC_WRITE ;
 
    if (( _oflag & S_IREAD ) == S_IREAD )
      dwShareMode |= FILE_SHARE_READ;