mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
- Pre initialized the resulting transfer length for requests which are split.
svn path=/trunk/; revision=8570
This commit is contained in:
parent
ec2daabaf9
commit
68ddb0bcdd
1 changed files with 5 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: class2.c,v 1.49 2004/02/29 11:21:58 hbirr Exp $
|
||||
/* $Id: class2.c,v 1.50 2004/03/07 19:53:08 hbirr Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -2134,6 +2134,10 @@ ScsiClassSplitRequest(IN PDEVICE_OBJECT DeviceObject,
|
|||
/* Initialize transfer data for first request */
|
||||
Offset = CurrentStack->Parameters.Read.ByteOffset;
|
||||
TransferLength = CurrentStack->Parameters.Read.Length;
|
||||
|
||||
/* Set the result length */
|
||||
Irp->IoStatus.Information = TransferLength;
|
||||
|
||||
DataLength = MaximumBytes;
|
||||
RequestCount = ROUND_UP(TransferLength, MaximumBytes) / MaximumBytes;
|
||||
|
||||
|
|
Loading…
Reference in a new issue