mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
incorrect use of FILE_xxx defines, not avalaible for CreateFile ?
svn path=/trunk/; revision=1538
This commit is contained in:
parent
20ee4eb9a7
commit
d2833af32c
1 changed files with 3 additions and 7 deletions
|
@ -66,15 +66,11 @@ int _open(const char *_path, int _oflag,...)
|
|||
* _O_APPEND Moves file pointer to end of file before every write operation.
|
||||
*/
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue