mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Do only signal the other side of the pipe if the pipe is connected.
svn path=/trunk/; revision=13767
This commit is contained in:
parent
4674211527
commit
2e93c2f4d9
1 changed files with 8 additions and 2 deletions
|
@ -102,7 +102,10 @@ NpfsRead(PDEVICE_OBJECT DeviceObject,
|
|||
if (Fcb->ReadDataAvailable == 0)
|
||||
{
|
||||
KeResetEvent(&Fcb->Event);
|
||||
KeSetEvent(&WriterFcb->Event, IO_NO_INCREMENT, FALSE);
|
||||
if (Fcb->PipeState == FILE_PIPE_CONNECTED_STATE)
|
||||
{
|
||||
KeSetEvent(&WriterFcb->Event, IO_NO_INCREMENT, FALSE);
|
||||
}
|
||||
KeReleaseSpinLock(&Fcb->DataListLock, OldIrql);
|
||||
if (Information > 0)
|
||||
{
|
||||
|
@ -190,7 +193,10 @@ NpfsRead(PDEVICE_OBJECT DeviceObject,
|
|||
|
||||
if (Information > 0)
|
||||
{
|
||||
KeSetEvent(&WriterFcb->Event, IO_NO_INCREMENT, FALSE);
|
||||
if (Fcb->PipeState == FILE_PIPE_CONNECTED_STATE)
|
||||
{
|
||||
KeSetEvent(&WriterFcb->Event, IO_NO_INCREMENT, FALSE);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue