[ros-diffs] [cgutman] 35282: - Don't continue if locking failed

cgutman at svn.reactos.org cgutman at svn.reactos.org
Tue Aug 12 00:44:24 CEST 2008


Author: cgutman
Date: Mon Aug 11 17:44:24 2008
New Revision: 35282

URL: http://svn.reactos.org/svn/reactos?rev=35282&view=rev
Log:
 - Don't continue if locking failed

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

Modified: branches/aicom-network-fixes/drivers/network/afd/afd/write.c
URL: http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/network/afd/afd/write.c?rev=35282&r1=35281&r2=35282&view=diff
==============================================================================
--- branches/aicom-network-fixes/drivers/network/afd/afd/write.c [iso-8859-1] (original)
+++ branches/aicom-network-fixes/drivers/network/afd/afd/write.c [iso-8859-1] Mon Aug 11 17:44:24 2008
@@ -226,6 +226,11 @@
                                             NULL, NULL,
                                             FALSE, FALSE );
 
+	if( !SendReq->BufferArray ) {
+	    return UnlockAndMaybeComplete( FCB, STATUS_ACCESS_VIOLATION,
+                                           Irp, 0, NULL );
+	}
+
         TdiBuildConnectionInfo( &TargetAddress, FCB->RemoteAddress );
 
         SocketCalloutEnter( FCB );
@@ -287,6 +292,11 @@
 					    NULL, NULL,
 					    FALSE, FALSE );
 
+        if( !SendReq->BufferArray ) {
+            return UnlockAndMaybeComplete( FCB, STATUS_ACCESS_VIOLATION,
+                                           Irp, 0, NULL );
+        }
+
 	for( i = 0; FCB->Send.BytesUsed < FCB->Send.Size &&
 		 i < SendReq->BufferCount; i++ ) {
 	    CopySize = MIN( SpaceAvail,



More information about the Ros-diffs mailing list