Author: tfaber
Date: Sun Jun 14 07:58:58 2015
New Revision: 68131
URL:
http://svn.reactos.org/svn/reactos?rev=68131&view=rev
Log:
[AFD]
- Immediately finish a zero-length request in TdiSendDatagram. This may not be completely
correct (should possibly get forwarded to tcpip instead) but is better than asserting.
CORE-9810
Modified:
trunk/reactos/drivers/network/afd/afd/tdi.c
Modified: trunk/reactos/drivers/network/afd/afd/tdi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/afd/afd/td…
==============================================================================
--- trunk/reactos/drivers/network/afd/afd/tdi.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/afd/afd/tdi.c [iso-8859-1] Sun Jun 14 07:58:58 2015
@@ -1175,6 +1175,12 @@
return STATUS_INVALID_PARAMETER;
}
+ if (BufferLength == 0)
+ {
+ AFD_DbgPrint(MID_TRACE, ("Succeeding send with length 0.\n"));
+ return STATUS_SUCCESS;
+ }
+
*Irp = TdiBuildInternalDeviceControlIrp(TDI_SEND_DATAGRAM, /* Sub function */
DeviceObject, /* Device object */
TransportObject, /* File object */