mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 10:52:52 +00:00
ConnectNamedPipe(): STATUS_PIPE_CONNECTED reports a successful connect.
svn path=/trunk/; revision=3204
This commit is contained in:
parent
4684f7fe0e
commit
2ecad3b855
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: npipe.c,v 1.10 2002/06/25 18:49:38 ekohl Exp $
|
/* $Id: npipe.c,v 1.11 2002/07/10 15:09:57 ekohl Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -287,9 +287,9 @@ BOOL STDCALL
|
||||||
ConnectNamedPipe(HANDLE hNamedPipe,
|
ConnectNamedPipe(HANDLE hNamedPipe,
|
||||||
LPOVERLAPPED lpOverlapped)
|
LPOVERLAPPED lpOverlapped)
|
||||||
{
|
{
|
||||||
|
PIO_STATUS_BLOCK IoStatusBlock;
|
||||||
IO_STATUS_BLOCK Iosb;
|
IO_STATUS_BLOCK Iosb;
|
||||||
HANDLE hEvent;
|
HANDLE hEvent;
|
||||||
PIO_STATUS_BLOCK IoStatusBlock;
|
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
|
||||||
if (lpOverlapped != NULL)
|
if (lpOverlapped != NULL)
|
||||||
|
@ -326,9 +326,10 @@ ConnectNamedPipe(HANDLE hNamedPipe,
|
||||||
}
|
}
|
||||||
Status = Iosb.Status;
|
Status = Iosb.Status;
|
||||||
}
|
}
|
||||||
if (!NT_SUCCESS(Status) || (Status == STATUS_PENDING))
|
if ((!NT_SUCCESS(Status) && Status != STATUS_PIPE_CONNECTED) ||
|
||||||
|
(Status == STATUS_PENDING))
|
||||||
{
|
{
|
||||||
SetLastErrorByStatus (Status);
|
SetLastErrorByStatus(Status);
|
||||||
return(FALSE);
|
return(FALSE);
|
||||||
}
|
}
|
||||||
return(TRUE);
|
return(TRUE);
|
||||||
|
|
Loading…
Reference in a new issue