[ros-diffs] [hbirr] 14504: Set the correct CurrentVa in the call to IoFlushAdapterBuffers.

hbirr at svn.reactos.com hbirr at svn.reactos.com
Tue Apr 5 17:53:11 CEST 2005


Set the correct CurrentVa in the call to IoFlushAdapterBuffers.
Modified: trunk/reactos/drivers/storage/floppy/readwrite.c
  _____  

Modified: trunk/reactos/drivers/storage/floppy/readwrite.c
--- trunk/reactos/drivers/storage/floppy/readwrite.c	2005-04-05
15:51:02 UTC (rev 14503)
+++ trunk/reactos/drivers/storage/floppy/readwrite.c	2005-04-05
15:53:09 UTC (rev 14504)
@@ -723,7 +723,7 @@

       /* 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 */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050405/1daccfc2/attachment.html


More information about the Ros-diffs mailing list