Author: cgutman
Date: Tue Apr 7 03:42:08 2009
New Revision: 40408
URL:
http://svn.reactos.org/svn/reactos?rev=40408&view=rev
Log:
- Return the correct status when we get a bad parameter
Modified:
trunk/reactos/drivers/network/tcpip/tcpip/dispatch.c
Modified: trunk/reactos/drivers/network/tcpip/tcpip/dispatch.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/tcpip/tcpi…
==============================================================================
--- trunk/reactos/drivers/network/tcpip/tcpip/dispatch.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/tcpip/tcpip/dispatch.c [iso-8859-1] Tue Apr 7 03:42:08
2009
@@ -397,14 +397,14 @@
TranContext = IrpSp->FileObject->FsContext;
if (!TranContext) {
TI_DbgPrint(MID_TRACE, ("Bad transport context.\n"));
- Status = STATUS_INVALID_CONNECTION;
+ Status = STATUS_INVALID_PARAMETER;
goto done;
}
Connection = (PCONNECTION_ENDPOINT)TranContext->Handle.ConnectionContext;
if (!Connection) {
TI_DbgPrint(MID_TRACE, ("No connection endpoint file object.\n"));
- Status = STATUS_INVALID_CONNECTION;
+ Status = STATUS_INVALID_PARAMETER;
goto done;
}
@@ -500,14 +500,14 @@
TranContext = IrpSp->FileObject->FsContext;
if (!TranContext) {
TI_DbgPrint(MID_TRACE, ("Bad transport context.\n"));
- Status = STATUS_INVALID_CONNECTION;
+ Status = STATUS_INVALID_PARAMETER;
goto done;
}
Connection = (PCONNECTION_ENDPOINT)TranContext->Handle.ConnectionContext;
if (!Connection) {
TI_DbgPrint(MID_TRACE, ("No connection endpoint file object.\n"));
- Status = STATUS_INVALID_CONNECTION;
+ Status = STATUS_INVALID_PARAMETER;
goto done;
}
@@ -561,7 +561,7 @@
if (TranContext == NULL)
{
TI_DbgPrint(MID_TRACE, ("Bad transport context.\n"));
- Status = STATUS_INVALID_CONNECTION;
+ Status = STATUS_INVALID_PARAMETER;
goto done;
}
@@ -569,7 +569,7 @@
if (Connection == NULL)
{
TI_DbgPrint(MID_TRACE, ("No connection endpoint file object.\n"));
- Status = STATUS_INVALID_CONNECTION;
+ Status = STATUS_INVALID_PARAMETER;
goto done;
}
@@ -662,7 +662,7 @@
TranContext = IrpSp->FileObject->FsContext;
if (!TranContext) {
TI_DbgPrint(MID_TRACE, ("Bad transport context.\n"));
- return STATUS_INVALID_CONNECTION;
+ return STATUS_INVALID_PARAMETER;
}
switch (Parameters->QueryType)
@@ -793,14 +793,14 @@
if (TranContext == NULL)
{
TI_DbgPrint(MID_TRACE, ("Bad transport context.\n"));
- Status = STATUS_INVALID_CONNECTION;
+ Status = STATUS_INVALID_PARAMETER;
goto done;
}
if (TranContext->Handle.ConnectionContext == NULL)
{
TI_DbgPrint(MID_TRACE, ("No connection endpoint file object.\n"));
- Status = STATUS_INVALID_CONNECTION;
+ Status = STATUS_INVALID_PARAMETER;
goto done;
}
@@ -865,7 +865,7 @@
if (TranContext == NULL)
{
TI_DbgPrint(MID_TRACE, ("Bad transport context.\n"));
- Status = STATUS_INVALID_CONNECTION;
+ Status = STATUS_INVALID_PARAMETER;
goto done;
}
@@ -942,14 +942,14 @@
if (TranContext == NULL)
{
TI_DbgPrint(MID_TRACE, ("Bad transport context.\n"));
- Status = STATUS_INVALID_CONNECTION;
+ Status = STATUS_INVALID_PARAMETER;
goto done;
}
if (TranContext->Handle.ConnectionContext == NULL)
{
TI_DbgPrint(MID_TRACE, ("No connection endpoint file object.\n"));
- Status = STATUS_INVALID_CONNECTION;
+ Status = STATUS_INVALID_PARAMETER;
goto done;
}
@@ -1018,7 +1018,7 @@
if (TranContext == NULL)
{
TI_DbgPrint(MID_TRACE, ("Bad transport context.\n"));
- Status = STATUS_INVALID_CONNECTION;
+ Status = STATUS_INVALID_PARAMETER;
goto done;
}