mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 08:00:24 +00:00
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:
parent
fd30631edf
commit
065786c3b7
1 changed files with 7 additions and 1 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue