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:
Gé van Geldorp 2003-11-06 20:43:45 +00:00
parent ce0b4616e6
commit e12f26f173

View file

@ -38,7 +38,8 @@ VOID IoDeviceControlCompletion(PDEVICE_OBJECT DeviceObject,
else else
{ {
IoControlCode = IoStack->Parameters.DeviceIoControl.IoControlCode; 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)) switch (IO_METHOD_FROM_CTL_CODE(IoControlCode))