give GetFileAttributesExW more NtOpenFile right to prevent reactos crash
if u using CreateFile then GetFileAttributesExW. It also fix a bug for
me for livecd it booting on first try now in vmware. instead second or
more booting try.
Modified: trunk/reactos/lib/kernel32/file/file.c
_____
Modified: trunk/reactos/lib/kernel32/file/file.c
--- trunk/reactos/lib/kernel32/file/file.c 2005-09-18 11:18:28 UTC
(rev 17908)
+++ trunk/reactos/lib/kernel32/file/file.c 2005-09-18 12:05:57 UTC
(rev 17909)
@@ -869,12 +869,18 @@
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))
{