give GetFileAttributesExW more NtOpenFile right to prevent reactos crash if u using...
[reactos.git] / 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))
     {