From d2833af32cc71bdd4f4830bb5d5f49e888b7d1b5 Mon Sep 17 00:00:00 2001 From: jean Date: Thu, 18 Jan 2001 13:54:03 +0000 Subject: [PATCH] incorrect use of FILE_xxx defines, not avalaible for CreateFile ? svn path=/trunk/; revision=1538 --- reactos/lib/msvcrt/io/open.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/reactos/lib/msvcrt/io/open.c b/reactos/lib/msvcrt/io/open.c index 5228201068c..8015d87f57e 100644 --- a/reactos/lib/msvcrt/io/open.c +++ b/reactos/lib/msvcrt/io/open.c @@ -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;