Author: ekohl
Date: Sun Apr 30 16:10:31 2006
New Revision: 21758
URL:
http://svn.reactos.ru/svn/reactos?rev=21758&view=rev
Log:
Improvement to the r21757 patch.
Modified:
trunk/reactos/drivers/filesystems/np/rw.c
Modified: trunk/reactos/drivers/filesystems/np/rw.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/drivers/filesystems/np/rw.c…
==============================================================================
--- trunk/reactos/drivers/filesystems/np/rw.c (original)
+++ trunk/reactos/drivers/filesystems/np/rw.c Sun Apr 30 16:10:31 2006
@@ -318,10 +318,15 @@
Fcb = FileObject->FsContext;
Context = (PNPFS_CONTEXT)&Irp->Tail.Overlay.DriverContext;
- if (Fcb->OtherSide == NULL && Fcb->PipeState ==
FILE_PIPE_LISTENING_STATE)
+ if (Fcb->OtherSide == NULL)
{
- DPRINT("Pipe is NOT yet connected!\n");
- Status = STATUS_PIPE_LISTENING;
+ DPRINT("Pipe is NOT connected!\n");
+ if (Fcb->PipeState == FILE_PIPE_LISTENING_STATE)
+ Status = STATUS_PIPE_LISTENING;
+ else if (Fcb->PipeState == FILE_PIPE_DISCONNECTED_STATE)
+ Status = STATUS_PIPE_DISCONNECTED;
+ else
+ Status = STATUS_UNSUCCESSFUL;
Irp->IoStatus.Information = 0;
goto done;
}