mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 16:40:27 +00:00
Do not crash on broken pipe.
svn path=/trunk/; revision=26623
This commit is contained in:
parent
45986f803a
commit
12a24bb9e3
1 changed files with 3 additions and 2 deletions
|
@ -688,7 +688,6 @@ NpfsWrite(PDEVICE_OBJECT DeviceObject,
|
||||||
NULL);
|
NULL);
|
||||||
DPRINT("Finished waiting (%S)! Status: %x\n", Fcb->PipeName.Buffer, Status);
|
DPRINT("Finished waiting (%S)! Status: %x\n", Fcb->PipeName.Buffer, Status);
|
||||||
|
|
||||||
ExAcquireFastMutex(&ReaderCcb->DataListLock);
|
|
||||||
/*
|
/*
|
||||||
* It's possible that the event was signaled because the
|
* It's possible that the event was signaled because the
|
||||||
* other side of pipe was closed.
|
* other side of pipe was closed.
|
||||||
|
@ -697,9 +696,11 @@ NpfsWrite(PDEVICE_OBJECT DeviceObject,
|
||||||
{
|
{
|
||||||
DPRINT("PipeState: %x\n", Ccb->PipeState);
|
DPRINT("PipeState: %x\n", Ccb->PipeState);
|
||||||
Status = STATUS_PIPE_BROKEN;
|
Status = STATUS_PIPE_BROKEN;
|
||||||
ExReleaseFastMutex(&ReaderCcb->DataListLock);
|
// ExReleaseFastMutex(&ReaderCcb->DataListLock);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ExAcquireFastMutex(&ReaderCcb->DataListLock);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Fcb->WriteMode == FILE_PIPE_BYTE_STREAM_MODE)
|
if (Fcb->WriteMode == FILE_PIPE_BYTE_STREAM_MODE)
|
||||||
|
|
Loading…
Reference in a new issue