mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[NTOSKNRL] In NtWriteFile, remove the check that is now redundant with ObReferenceFileObjectForWrite().
CORE-14003
This commit is contained in:
parent
c3d5a3f2bd
commit
1d777ffab5
1 changed files with 0 additions and 15 deletions
|
@ -3511,21 +3511,6 @@ NtWriteFile(IN HANDLE FileHandle,
|
|||
{
|
||||
_SEH2_TRY
|
||||
{
|
||||
/*
|
||||
* Check if the handle has either FILE_WRITE_DATA or
|
||||
* FILE_APPEND_DATA granted. However, if this is a named pipe,
|
||||
* make sure we don't ask for FILE_APPEND_DATA as it interferes
|
||||
* with the FILE_CREATE_PIPE_INSTANCE access right!
|
||||
*/
|
||||
if (!(ObjectHandleInfo.GrantedAccess &
|
||||
((!(FileObject->Flags & FO_NAMED_PIPE) ?
|
||||
FILE_APPEND_DATA : 0) | FILE_WRITE_DATA)))
|
||||
{
|
||||
/* We failed */
|
||||
ObDereferenceObject(FileObject);
|
||||
_SEH2_YIELD(return STATUS_ACCESS_DENIED);
|
||||
}
|
||||
|
||||
/* Probe the status block */
|
||||
ProbeForWriteIoStatusBlock(IoStatusBlock);
|
||||
|
||||
|
|
Loading…
Reference in a new issue