mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
CreateNamedPipeW(): Set access rights according to the given open mode.
svn path=/trunk/; revision=13338
This commit is contained in:
parent
466fa48bd1
commit
2829fb845f
1 changed files with 3 additions and 0 deletions
|
@ -123,14 +123,17 @@ CreateNamedPipeW(LPCWSTR lpName,
|
|||
if (dwOpenMode & PIPE_ACCESS_DUPLEX)
|
||||
{
|
||||
CreateOptions = CreateOptions | FILE_PIPE_FULL_DUPLEX;
|
||||
DesiredAccess |= (FILE_GENERIC_READ | FILE_GENERIC_WRITE);
|
||||
}
|
||||
else if (dwOpenMode & PIPE_ACCESS_INBOUND)
|
||||
{
|
||||
CreateOptions = CreateOptions | FILE_PIPE_INBOUND;
|
||||
DesiredAccess |= FILE_GENERIC_READ;
|
||||
}
|
||||
else if (dwOpenMode & PIPE_ACCESS_OUTBOUND)
|
||||
{
|
||||
CreateOptions = CreateOptions | FILE_PIPE_OUTBOUND;
|
||||
DesiredAccess |= FILE_GENERIC_WRITE;
|
||||
}
|
||||
|
||||
if (dwPipeMode & PIPE_TYPE_BYTE)
|
||||
|
|
Loading…
Reference in a new issue