[ros-diffs] [cgutman] 54331: [TCPIP] - Fix a potential double-completion of an IRP

cgutman at svn.reactos.org cgutman at svn.reactos.org
Mon Nov 7 02:02:59 UTC 2011


Author: cgutman
Date: Mon Nov  7 02:02:59 2011
New Revision: 54331

URL: http://svn.reactos.org/svn/reactos?rev=54331&view=rev
Log:
[TCPIP]
- Fix a potential double-completion of an IRP

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/tcpip/dispatch.c?rev=54331&r1=54330&r2=54331&view=diff
==============================================================================
--- trunk/reactos/drivers/network/tcpip/tcpip/dispatch.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/tcpip/tcpip/dispatch.c [iso-8859-1] Mon Nov  7 02:02:59 2011
@@ -1516,14 +1516,11 @@
         return Irp->IoStatus.Status;
     }
 
-    Status = DispPrepareIrpForCancel(TranContext, Irp, NULL);
-    if (NT_SUCCESS(Status)) {
-        Request.RequestNotifyObject = DispDataRequestComplete;
-        Request.RequestContext      = Irp;
-
-        Status = InfoTdiSetInformationEx(&Request, &Info->ID,
+    Request.RequestNotifyObject = NULL;
+    Request.RequestContext      = NULL;
+
+    Status = InfoTdiSetInformationEx(&Request, &Info->ID,
             &Info->Buffer, Info->BufferSize);
-    }
 
     return Status;
 }




More information about the Ros-diffs mailing list