From de8627877c61ca3e8dc251f74259fdcd9fdc6620 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sat, 8 Jan 2005 14:54:59 +0000 Subject: [PATCH] Connect a pipes client side as soon as a listening server side is available. svn path=/trunk/; revision=12889 --- reactos/drivers/fs/np/create.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/drivers/fs/np/create.c b/reactos/drivers/fs/np/create.c index ef5e5e2294b..4c18f268e5f 100644 --- a/reactos/drivers/fs/np/create.c +++ b/reactos/drivers/fs/np/create.c @@ -192,14 +192,14 @@ NpfsCreate(PDEVICE_OBJECT DeviceObject, 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. */ InsertTailList(&Pipe->ClientFcbListHead, &ClientFcb->FcbListEntry); - /* Connect pipes if they were created by the same thread */ - if (ServerFcb && ServerFcb->Thread == ClientFcb->Thread) + /* Connect to listening server side */ + if (ServerFcb) { ClientFcb->OtherSide = ServerFcb; ServerFcb->OtherSide = ClientFcb;