[TCPIP][FORMATTING] Format TiDispatch function. No functional changes

This commit is contained in:
Victor Perevertkin 2019-11-17 02:29:55 +03:00 committed by Victor Perevertkin
parent 1fdf06c563
commit 792b64ea46

View file

@ -473,18 +473,21 @@ TiDispatchInternal(
}
/**
* @brief Dispatch routine for IRP_MJ_DEVICE_CONTROL requests
*
* @param[in] DeviceObject
* Pointer to a device object for this driver
* @param[in] Irp
* Pointer to a I/O request packet
*
* @return
* Status of the operation
*/
NTSTATUS NTAPI
TiDispatch(
PDEVICE_OBJECT DeviceObject,
PIRP Irp)
/*
* FUNCTION: Dispatch routine for IRP_MJ_DEVICE_CONTROL requests
* ARGUMENTS:
* DeviceObject = Pointer to a device object for this driver
* Irp = Pointer to a I/O request packet
* RETURNS:
* Status of the operation
*/
{
NTSTATUS Status;
PIO_STACK_LOCATION IrpSp;
@ -497,15 +500,19 @@ TiDispatch(
#if 0
Status = TdiMapUserRequest(DeviceObject, Irp, IrpSp);
if (NT_SUCCESS(Status)) {
if (NT_SUCCESS(Status))
{
TiDispatchInternal(DeviceObject, Irp);
Status = STATUS_PENDING;
} else {
}
else
{
#else
if (TRUE) {
#endif
/* See if this request is TCP/IP specific */
switch (IrpSp->Parameters.DeviceIoControl.IoControlCode) {
switch (IrpSp->Parameters.DeviceIoControl.IoControlCode)
{
case IOCTL_TCP_QUERY_INFORMATION_EX:
TI_DbgPrint(MIN_TRACE, ("TCP_QUERY_INFORMATION_EX\n"));
Status = DispTdiQueryInformationEx(Irp, IrpSp);