Patch by Elrond:

- Let NpfsListeningCancelRoutine show the pipe name it is trying to act on.
- Add more ASSERT()s to NpfsRead, which seems to act quite strange sometimes

svn path=/trunk/; revision=19531
This commit is contained in:
Hervé Poussineau 2005-11-24 16:23:07 +00:00
parent fc3b932fc8
commit edb771ae7d
2 changed files with 4 additions and 2 deletions

View file

@ -22,10 +22,11 @@ NpfsListeningCancelRoutine(IN PDEVICE_OBJECT DeviceObject,
{
PNPFS_WAITER_ENTRY Waiter;
DPRINT1("NpfsListeningCancelRoutine() called\n");
Waiter = (PNPFS_WAITER_ENTRY)&Irp->Tail.Overlay.DriverContext;
DPRINT1("NpfsListeningCancelRoutine() called for <%wZ>\n",
&Waiter->Fcb->Pipe->PipeName);
IoReleaseCancelSpinLock(Irp->CancelIrql);

View file

@ -442,6 +442,7 @@ NpfsRead(IN PDEVICE_OBJECT DeviceObject,
break;
}
}
ASSERT(IoGetCurrentIrpStackLocation(Irp)->FileObject != NULL);
if (Fcb->Pipe->ReadMode == FILE_PIPE_BYTE_STREAM_MODE)
{
DPRINT("Byte stream mode\n");