mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
Fixed the return value and last error in ConnectNamedPipe if a overlapped structure is given.
svn path=/trunk/; revision=14306
This commit is contained in:
parent
79d1ef572c
commit
bb8e4bcd9e
1 changed files with 2 additions and 7 deletions
|
@ -330,20 +330,15 @@ ConnectNamedPipe(HANDLE hNamedPipe,
|
|||
0,
|
||||
NULL,
|
||||
0);
|
||||
if ((lpOverlapped != NULL) && (Status == STATUS_PENDING))
|
||||
return TRUE;
|
||||
|
||||
if ((lpOverlapped == NULL) && (Status == STATUS_PENDING))
|
||||
{
|
||||
Status = NtWaitForSingleObject(hNamedPipe,
|
||||
FALSE,
|
||||
NULL);
|
||||
if (!NT_SUCCESS(Status))
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastErrorByStatus(Status);
|
||||
return FALSE;
|
||||
Status = Iosb.Status;
|
||||
}
|
||||
Status = Iosb.Status;
|
||||
}
|
||||
|
||||
if ((!NT_SUCCESS(Status) && Status != STATUS_PIPE_CONNECTED) ||
|
||||
|
|
Loading…
Reference in a new issue