mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
svn path=/trunk/; revision=17195
This commit is contained in:
parent
20732be74c
commit
f61e4f1230
1 changed files with 12 additions and 14 deletions
|
@ -398,25 +398,23 @@ NpfsRead(IN PDEVICE_OBJECT DeviceObject,
|
|||
{
|
||||
if (Fcb->ReadDataAvailable == 0)
|
||||
{
|
||||
if (Fcb->PipeState == FILE_PIPE_CONNECTED_STATE)
|
||||
{
|
||||
ASSERT(Fcb->OtherSide != NULL);
|
||||
KeSetEvent(&Fcb->OtherSide->WriteEvent, IO_NO_INCREMENT, FALSE);
|
||||
}
|
||||
if (Information > 0 &&
|
||||
(Fcb->Pipe->ReadMode != FILE_PIPE_BYTE_STREAM_MODE ||
|
||||
Fcb->PipeState != FILE_PIPE_CONNECTED_STATE))
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (Fcb->PipeState != FILE_PIPE_CONNECTED_STATE)
|
||||
{
|
||||
DPRINT("PipeState: %x\n", Fcb->PipeState);
|
||||
if (Fcb->PipeState == FILE_PIPE_LISTENING_STATE)
|
||||
Status = STATUS_PIPE_LISTENING;
|
||||
else
|
||||
Status = STATUS_PIPE_DISCONNECTED;
|
||||
Status = STATUS_PIPE_BROKEN;
|
||||
break;
|
||||
}
|
||||
|
||||
ASSERT(Fcb->OtherSide != NULL);
|
||||
KeSetEvent(&Fcb->OtherSide->WriteEvent, IO_NO_INCREMENT, FALSE);
|
||||
|
||||
if (Information > 0 &&
|
||||
Fcb->Pipe->ReadMode != FILE_PIPE_BYTE_STREAM_MODE)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
ExReleaseFastMutex(&Fcb->DataListLock);
|
||||
if (IoIsOperationSynchronous(Irp))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue