mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:35:47 +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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue