projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd30631
)
give GetFileAttributesExW more NtOpenFile right to prevent reactos crash if u using...
author
Magnus Olsen
<magnus@greatlord.com>
Sun, 18 Sep 2005 12:05:57 +0000
(12:05 +0000)
committer
Magnus 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
patch
|
blob
|
history
diff --git
a/reactos/lib/kernel32/file/file.c
b/reactos/lib/kernel32/file/file.c
index
ac02f69
..
826ad71
100644
(file)
--- a/
reactos/lib/kernel32/file/file.c
+++ b/
reactos/lib/kernel32/file/file.c
@@
-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))
{