--- trunk/reactos/lib/kernel32/file/file.c 2005-09-18 13:10:43 UTC (rev 17910)
+++ trunk/reactos/lib/kernel32/file/file.c 2005-09-18 13:36:29 UTC (rev 17911)
@@ -869,18 +869,12 @@
NULL);
/* Open the file */
-
-
Status = NtOpenFile (&FileHandle,
- SYNCHRONIZE | GENERIC_ALL,
+ SYNCHRONIZE | FILE_READ_ATTRIBUTES,
&ObjectAttributes,
&IoStatusBlock,
FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
FILE_SYNCHRONOUS_IO_NONALERT);
-
-
-
-
RtlFreeUnicodeString (&FileName);
if (!NT_SUCCESS (Status))
{