[ros-diffs] [cgutman] 35283: - Don't forget to call UnlockBuffers() - Use Irp->IoStatus.Information instead of RecvReq->BufferArray[0].len

cgutman at svn.reactos.org cgutman at svn.reactos.org
Tue Aug 12 05:20:53 CEST 2008


Author: cgutman
Date: Mon Aug 11 22:20:52 2008
New Revision: 35283

URL: http://svn.reactos.org/svn/reactos?rev=35283&view=rev
Log:
 - Don't forget to call UnlockBuffers()
 - Use Irp->IoStatus.Information instead of RecvReq->BufferArray[0].len

Modified:
    branches/aicom-network-fixes/drivers/network/afd/afd/read.c

Modified: branches/aicom-network-fixes/drivers/network/afd/afd/read.c
URL: http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/network/afd/afd/read.c?rev=35283&r1=35282&r2=35283&view=diff
==============================================================================
--- branches/aicom-network-fixes/drivers/network/afd/afd/read.c [iso-8859-1] (original)
+++ branches/aicom-network-fixes/drivers/network/afd/afd/read.c [iso-8859-1] Mon Aug 11 22:20:52 2008
@@ -602,8 +602,10 @@
 
 	    PollReeval( FCB->DeviceExt, FCB->FileObject );
 
+	    UnlockBuffers( RecvReq->BufferArray, RecvReq->BufferCount, TRUE );
+
 	    return UnlockAndMaybeComplete
-		( FCB, Status, Irp, RecvReq->BufferArray[0].len, NULL );
+		( FCB, Status, Irp, Irp->IoStatus.Information, NULL );
 	} else {
 	    Status = SatisfyPacketRecvRequest
 		( FCB, Irp, DatagramRecv,
@@ -615,6 +617,8 @@
 		FCB->PollState |= AFD_EVENT_RECEIVE;
 
 	    PollReeval( FCB->DeviceExt, FCB->FileObject );
+
+	    UnlockBuffers( RecvReq->BufferArray, RecvReq->BufferCount, TRUE );
 
 	    return UnlockAndMaybeComplete
 		( FCB, Status, Irp, Irp->IoStatus.Information, NULL );



More information about the Ros-diffs mailing list