mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 12:23:30 +00: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