mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
suppress use of FILE_READ_xx and FILE_WRITE_xxx defines.
not available for CreateFile ? svn path=/trunk/; revision=1541
This commit is contained in:
parent
a8660c1f02
commit
fd4c82a289
1 changed files with 3 additions and 7 deletions
|
@ -67,15 +67,11 @@ int _open(const char *_path, int _oflag,...)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
if (( _oflag & _O_RDWR ) == _O_RDWR )
|
if (( _oflag & _O_RDWR ) == _O_RDWR )
|
||||||
dwDesiredAccess |= GENERIC_WRITE|GENERIC_READ | FILE_READ_DATA |
|
dwDesiredAccess |= GENERIC_WRITE|GENERIC_READ ;
|
||||||
FILE_WRITE_DATA | FILE_READ_ATTRIBUTES |
|
|
||||||
FILE_WRITE_ATTRIBUTES;
|
|
||||||
else if (( _oflag & O_RDONLY ) == O_RDONLY )
|
else if (( _oflag & O_RDONLY ) == O_RDONLY )
|
||||||
dwDesiredAccess |= GENERIC_READ | FILE_READ_DATA | FILE_READ_ATTRIBUTES
|
dwDesiredAccess |= GENERIC_READ ;
|
||||||
| FILE_WRITE_ATTRIBUTES;
|
|
||||||
else if (( _oflag & _O_WRONLY ) == _O_WRONLY )
|
else if (( _oflag & _O_WRONLY ) == _O_WRONLY )
|
||||||
dwDesiredAccess |= GENERIC_WRITE | FILE_WRITE_DATA |
|
dwDesiredAccess |= GENERIC_WRITE ;
|
||||||
FILE_READ_ATTRIBUTES | FILE_WRITE_ATTRIBUTES;
|
|
||||||
|
|
||||||
if (( _oflag & S_IREAD ) == S_IREAD )
|
if (( _oflag & S_IREAD ) == S_IREAD )
|
||||||
dwShareMode |= FILE_SHARE_READ;
|
dwShareMode |= FILE_SHARE_READ;
|
||||||
|
|
Loading…
Reference in a new issue