Patch by Elrond:
authorHervé Poussineau <hpoussin@reactos.org>
Thu, 24 Nov 2005 16:23:07 +0000 (16:23 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Thu, 24 Nov 2005 16:23:07 +0000 (16:23 +0000)
- 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

reactos/drivers/fs/np/fsctrl.c
reactos/drivers/fs/np/rw.c

index 5dcacd4..1f5ba90 100644 (file)
@@ -22,10 +22,11 @@ NpfsListeningCancelRoutine(IN PDEVICE_OBJECT DeviceObject,
 {
   PNPFS_WAITER_ENTRY Waiter;
 
 {
   PNPFS_WAITER_ENTRY Waiter;
 
-  DPRINT1("NpfsListeningCancelRoutine() called\n");
-
   Waiter = (PNPFS_WAITER_ENTRY)&Irp->Tail.Overlay.DriverContext;
 
   Waiter = (PNPFS_WAITER_ENTRY)&Irp->Tail.Overlay.DriverContext;
 
+  DPRINT1("NpfsListeningCancelRoutine() called for <%wZ>\n",
+         &Waiter->Fcb->Pipe->PipeName);
+
   IoReleaseCancelSpinLock(Irp->CancelIrql);
 
 
   IoReleaseCancelSpinLock(Irp->CancelIrql);
 
 
index 0676d42..e4f8cb2 100644 (file)
@@ -442,6 +442,7 @@ NpfsRead(IN PDEVICE_OBJECT DeviceObject,
              break;
           }
         }
              break;
           }
         }
+        ASSERT(IoGetCurrentIrpStackLocation(Irp)->FileObject != NULL);
         if (Fcb->Pipe->ReadMode == FILE_PIPE_BYTE_STREAM_MODE)
         {
           DPRINT("Byte stream mode\n");
         if (Fcb->Pipe->ReadMode == FILE_PIPE_BYTE_STREAM_MODE)
         {
           DPRINT("Byte stream mode\n");