From 1a0cac4ee8bb5f4c8bf05a12eaa9ac6205c85e6c Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Tue, 5 Apr 2005 15:53:09 +0000 Subject: [PATCH] Set the correct CurrentVa in the call to IoFlushAdapterBuffers. svn path=/trunk/; revision=14504 --- reactos/drivers/storage/floppy/readwrite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/drivers/storage/floppy/readwrite.c b/reactos/drivers/storage/floppy/readwrite.c index d3d0b68f776..fe803085427 100644 --- a/reactos/drivers/storage/floppy/readwrite.c +++ b/reactos/drivers/storage/floppy/readwrite.c @@ -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 */