Set the correct CurrentVa in the call to IoFlushAdapterBuffers.

svn path=/trunk/; revision=14504
This commit is contained in:
Hartmut Birr 2005-04-05 15:53:09 +00:00
parent e1d5086ebf
commit 1a0cac4ee8

View file

@ -723,7 +723,7 @@ VOID NTAPI ReadWritePassive(PDRIVE_INFO DriveInfo,
/* Read is complete; flush & free adapter channel */
IoFlushAdapterBuffers(DriveInfo->ControllerInfo->AdapterObject, Irp->MdlAddress,
DriveInfo->ControllerInfo->MapRegisterBase,
MmGetMdlVirtualAddress(Irp->MdlAddress),
(PVOID)((ULONG_PTR)MmGetMdlVirtualAddress(Irp->MdlAddress) + TransferByteOffset),
CurrentTransferBytes, WriteToDevice);
/* Read the results from the drive */