[AFD]
authorThomas Faber <thomas.faber@reactos.org>
Sun, 14 Jun 2015 07:58:58 +0000 (07:58 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 14 Jun 2015 07:58:58 +0000 (07:58 +0000)
- 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

svn path=/trunk/; revision=68131

reactos/drivers/network/afd/afd/tdi.c

index 7f93ad1..b480303 100644 (file)
@@ -1175,6 +1175,12 @@ NTSTATUS TdiSendDatagram(
         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 */