mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
Connect a pipes client side as soon as a listening server side is available.
svn path=/trunk/; revision=12889
This commit is contained in:
parent
b8e8ef8580
commit
de8627877c
1 changed files with 3 additions and 3 deletions
|
@ -192,14 +192,14 @@ NpfsCreate(PDEVICE_OBJECT DeviceObject,
|
||||||
KeInitializeEvent(&ClientFcb->Event, SynchronizationEvent, FALSE);
|
KeInitializeEvent(&ClientFcb->Event, SynchronizationEvent, FALSE);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Step 4. Add the client FCB to a list and connect it if necessary.
|
* Step 4. Add the client FCB to a list and connect it if possible.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Add the client FCB to the pipe FCB list. */
|
/* Add the client FCB to the pipe FCB list. */
|
||||||
InsertTailList(&Pipe->ClientFcbListHead, &ClientFcb->FcbListEntry);
|
InsertTailList(&Pipe->ClientFcbListHead, &ClientFcb->FcbListEntry);
|
||||||
|
|
||||||
/* Connect pipes if they were created by the same thread */
|
/* Connect to listening server side */
|
||||||
if (ServerFcb && ServerFcb->Thread == ClientFcb->Thread)
|
if (ServerFcb)
|
||||||
{
|
{
|
||||||
ClientFcb->OtherSide = ServerFcb;
|
ClientFcb->OtherSide = ServerFcb;
|
||||||
ServerFcb->OtherSide = ClientFcb;
|
ServerFcb->OtherSide = ClientFcb;
|
||||||
|
|
Loading…
Reference in a new issue