give GetFileAttributesExW more NtOpenFile right to prevent reactos crash if u using...
authorMagnus Olsen <magnus@greatlord.com>
Sun, 18 Sep 2005 12:05:57 +0000 (12:05 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Sun, 18 Sep 2005 12:05:57 +0000 (12:05 +0000)
svn path=/trunk/; revision=17909

reactos/lib/kernel32/file/file.c

index ac02f69..826ad71 100644 (file)
@@ -869,12 +869,18 @@ GetFileAttributesExW(LPCWSTR lpFileName,
                              NULL);
 
   /* Open the file */
+
+
   Status = NtOpenFile (&FileHandle,
-                      SYNCHRONIZE | FILE_READ_ATTRIBUTES,
+                      SYNCHRONIZE | GENERIC_ALL,
                       &ObjectAttributes,
                       &IoStatusBlock,
                       FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
                       FILE_SYNCHRONOUS_IO_NONALERT);
+
+
+
+
   RtlFreeUnicodeString (&FileName);
   if (!NT_SUCCESS (Status))
     {