mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +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->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)
|
if (Fcb->PipeState != FILE_PIPE_CONNECTED_STATE)
|
||||||
{
|
{
|
||||||
DPRINT("PipeState: %x\n", Fcb->PipeState);
|
DPRINT("PipeState: %x\n", Fcb->PipeState);
|
||||||
if (Fcb->PipeState == FILE_PIPE_LISTENING_STATE)
|
Status = STATUS_PIPE_BROKEN;
|
||||||
Status = STATUS_PIPE_LISTENING;
|
|
||||||
else
|
|
||||||
Status = STATUS_PIPE_DISCONNECTED;
|
|
||||||
break;
|
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);
|
ExReleaseFastMutex(&Fcb->DataListLock);
|
||||||
if (IoIsOperationSynchronous(Irp))
|
if (IoIsOperationSynchronous(Irp))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue