Always return FALSE when doing an overlapped ConnectNamedPipe.

This commit is contained in:
Mike McCormack 2003-06-06 18:10:36 +00:00 committed by Alexandre Julliard
parent 4de93e7710
commit e67c058bb9
1 changed files with 5 additions and 1 deletions

View File

@ -911,7 +911,11 @@ BOOL WINAPI ConnectNamedPipe(HANDLE hPipe, LPOVERLAPPED overlapped)
TRACE("(%p,%p)\n",hPipe, overlapped);
if(overlapped)
return SYNC_ConnectNamedPipe(hPipe,overlapped);
{
if(SYNC_ConnectNamedPipe(hPipe,overlapped))
SetLastError( ERROR_IO_PENDING );
return FALSE;
}
memset(&ov,0,sizeof ov);
ov.hEvent = CreateEventA(NULL,0,0,NULL);