Author: zhu Date: Sun Aug 21 18:15:11 2016 New Revision: 72412
URL: http://svn.reactos.org/svn/reactos?rev=72412&view=rev Log: Fixed mixing of declarations and case statements.
Modified: branches/GSoC_2016/lwIP-tcpip/drivers/network/tcpip/information.c
Modified: branches/GSoC_2016/lwIP-tcpip/drivers/network/tcpip/information.c URL: http://svn.reactos.org/svn/reactos/branches/GSoC_2016/lwIP-tcpip/drivers/net... ============================================================================== --- branches/GSoC_2016/lwIP-tcpip/drivers/network/tcpip/information.c [iso-8859-1] (original) +++ branches/GSoC_2016/lwIP-tcpip/drivers/network/tcpip/information.c [iso-8859-1] Sun Aug 21 18:15:11 2016 @@ -151,7 +151,11 @@ PIO_STACK_LOCATION IrpSp; PTDI_REQUEST_KERNEL_QUERY_INFORMATION Query; NTSTATUS Status; - + PTDI_ADDRESS_INFO AddressInfo; + PADDRESS_FILE AddressFile; + PTA_ADDRESS TAAddress; + PTDI_MAX_DATAGRAM_INFO MaxDatagramInfo; + IrpSp = IoGetCurrentIrpStackLocation(Irp); Query = (PTDI_REQUEST_KERNEL_QUERY_INFORMATION)&IrpSp->Parameters;
@@ -159,10 +163,6 @@ switch (Query->QueryType) { case TDI_QUERY_ADDRESS_INFO : - PTDI_ADDRESS_INFO AddressInfo; - PADDRESS_FILE AddressFile; - PTA_ADDRESS TAAddress; - if (MmGetMdlByteCount(Irp->MdlAddress) < sizeof(*AddressInfo)) { DPRINT1("MDL buffer too small.\n"); Status = STATUS_BUFFER_TOO_SMALL; @@ -185,8 +185,6 @@ break; case TDI_QUERY_MAX_DATAGRAM_INFO: { - PTDI_MAX_DATAGRAM_INFO MaxDatagramInfo; - if (MmGetMdlByteCount(Irp->MdlAddress) < sizeof(*MaxDatagramInfo)) { DPRINT1("MDL buffer too small.\n");