mirror of
https://github.com/reactos/reactos.git
synced 2026-07-07 01:44:20 +08:00
Don't interpret STATUS_PIPE_CONNECTED as error.
svn path=/trunk/; revision=15457
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user