Return the correct data length for FSCTL_PIPE_GET_STATE.
Modified: trunk/reactos/drivers/fs/np/fsctrl.c
_____
Modified: trunk/reactos/drivers/fs/np/fsctrl.c
--- trunk/reactos/drivers/fs/np/fsctrl.c 2005-05-01 09:51:06 UTC
(rev 14906)
+++ trunk/reactos/drivers/fs/np/fsctrl.c 2005-05-01 09:53:19 UTC
(rev 14907)
@@ -351,6 +351,8 @@
Reply->OutBufferSize = Pipe->OutboundQuota;
Reply->Timeout = Pipe->TimeOut;
+ Irp->IoStatus.Information = sizeof(NPFS_GET_STATE);
+
DPRINT("Status (0x%X).\n", STATUS_SUCCESS);
return STATUS_SUCCESS;
@@ -463,6 +465,8 @@
DPRINT("Pipe: %p\n", Pipe);
DPRINT("PipeName: %wZ\n", &Pipe->PipeName);
+ Irp->IoStatus.Information = 0;
+
switch (IoStack->Parameters.FileSystemControl.FsControlCode)
{
case FSCTL_PIPE_ASSIGN_EVENT:
@@ -553,7 +557,6 @@
if (Status != STATUS_PENDING)
{
Irp->IoStatus.Status = Status;
- Irp->IoStatus.Information = 0;
IoCompleteRequest(Irp, IO_NO_INCREMENT);
}