mirror of
https://github.com/reactos/reactos.git
synced 2024-08-30 07:08:19 +00:00
Copy number of bytes specified by driver in IoStatus.Information to
output buffer (METHOD_BUFFERED) svn path=/trunk/; revision=6552
This commit is contained in:
parent
ce0b4616e6
commit
e12f26f173
|
@ -38,7 +38,8 @@ VOID IoDeviceControlCompletion(PDEVICE_OBJECT DeviceObject,
|
|||
else
|
||||
{
|
||||
IoControlCode = IoStack->Parameters.DeviceIoControl.IoControlCode;
|
||||
OutputBufferLength = IoStack->Parameters.DeviceIoControl.OutputBufferLength;
|
||||
OutputBufferLength = NT_SUCCESS(Irp->IoStatus.Status)
|
||||
? Irp->IoStatus.Information : 0;
|
||||
}
|
||||
|
||||
switch (IO_METHOD_FROM_CTL_CODE(IoControlCode))
|
||||
|
|
Loading…
Reference in a new issue