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.

svn path=/trunk/; revision=17909
This commit is contained in:
Magnus Olsen 2005-09-18 12:05:57 +00:00
parent fd30631edf
commit 065786c3b7

View 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))
{