mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
Don't interpret STATUS_PIPE_CONNECTED as error.
svn path=/trunk/; revision=15457
This commit is contained in:
parent
991909bc42
commit
ca088cc13c
1 changed files with 3 additions and 2 deletions
|
@ -324,7 +324,8 @@ ConnectNamedPipe(IN HANDLE hNamedPipe,
|
|||
0);
|
||||
|
||||
/* return FALSE in case of failure and pending operations! */
|
||||
if (!NT_SUCCESS(Status) || Status == STATUS_PENDING)
|
||||
if ((!NT_SUCCESS(Status) && Status != STATUS_PIPE_CONNECTED) ||
|
||||
Status == STATUS_PENDING)
|
||||
{
|
||||
SetLastErrorByStatus(Status);
|
||||
return FALSE;
|
||||
|
@ -357,7 +358,7 @@ ConnectNamedPipe(IN HANDLE hNamedPipe,
|
|||
}
|
||||
}
|
||||
|
||||
if (!NT_SUCCESS(Status))
|
||||
if (!NT_SUCCESS(Status) && Status != STATUS_PIPE_CONNECTED)
|
||||
{
|
||||
SetLastErrorByStatus(Status);
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue