Author: cgutman
Date: Fri Aug 29 22:29:41 2008
New Revision: 35787
URL:
http://svn.reactos.org/svn/reactos?rev=35787&view=rev
Log:
- Change the status to STATUS_SUCCESS if TdiReceive returns STATUS_PENDING
Modified:
branches/aicom-network-fixes/drivers/network/afd/afd/connect.c
Modified: branches/aicom-network-fixes/drivers/network/afd/afd/connect.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
==============================================================================
--- branches/aicom-network-fixes/drivers/network/afd/afd/connect.c [iso-8859-1]
(original)
+++ branches/aicom-network-fixes/drivers/network/afd/afd/connect.c [iso-8859-1] Fri Aug 29
22:29:41 2008
@@ -33,6 +33,7 @@
}
NTSTATUS MakeSocketIntoConnection( PAFD_FCB FCB ) {
+ NTSTATUS Status;
/* Allocate the receive area and start receiving */
FCB->Recv.Window =
@@ -50,14 +51,18 @@
FCB->State = SOCKET_STATE_CONNECTED;
- return TdiReceive( &FCB->ReceiveIrp.InFlightRequest,
- FCB->Connection.Object,
- TDI_RECEIVE_NORMAL,
- FCB->Recv.Window,
- FCB->Recv.Size,
- &FCB->ReceiveIrp.Iosb,
- ReceiveComplete,
- FCB );
+ Status = TdiReceive( &FCB->ReceiveIrp.InFlightRequest,
+ FCB->Connection.Object,
+ TDI_RECEIVE_NORMAL,
+ FCB->Recv.Window,
+ FCB->Recv.Size,
+ &FCB->ReceiveIrp.Iosb,
+ ReceiveComplete,
+ FCB );
+
+ if( Status == STATUS_PENDING ) Status = STATUS_SUCCESS;
+
+ return Status;
}
static NTSTATUS NTAPI StreamSocketConnectComplete