mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
Return the correct data length for FSCTL_PIPE_GET_STATE.
svn path=/trunk/; revision=14907
This commit is contained in:
parent
65deeff1c1
commit
7ce3991a5c
1 changed files with 4 additions and 1 deletions
|
@ -351,6 +351,8 @@ NpfsGetState(PIRP Irp,
|
|||
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 @@ NpfsFileSystemControl(PDEVICE_OBJECT DeviceObject,
|
|||
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 @@ NpfsFileSystemControl(PDEVICE_OBJECT DeviceObject,
|
|||
if (Status != STATUS_PENDING)
|
||||
{
|
||||
Irp->IoStatus.Status = Status;
|
||||
Irp->IoStatus.Information = 0;
|
||||
|
||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue