mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 05:00:27 +00:00
Fixed bug in IoFlushAdapterBuffers
svn path=/trunk/; revision=1827
This commit is contained in:
parent
595a5bad20
commit
9b3a488664
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: adapter.c,v 1.6 2001/04/02 23:54:37 phreak Exp $
|
/* $Id: adapter.c,v 1.7 2001/04/26 01:30:17 phreak Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -75,7 +75,7 @@ IoFlushAdapterBuffers (PADAPTER_OBJECT AdapterObject,
|
||||||
{
|
{
|
||||||
// if this was a read from device, copy data back to caller buffer, otherwise, do nothing
|
// if this was a read from device, copy data back to caller buffer, otherwise, do nothing
|
||||||
if( !WriteToDevice )
|
if( !WriteToDevice )
|
||||||
memcpy( MmGetSystemAddressForMdl( Mdl ), MapRegisterBase, Length );
|
memcpy( (PVOID)((DWORD)MmGetSystemAddressForMdl( Mdl ) + (DWORD)CurrentVa - (DWORD)MmGetMdlVirtualAddress( Mdl )), MapRegisterBase, Length );
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue