[TCPIP]
authorCameron Gutman <aicommander@gmail.com>
Mon, 7 Nov 2011 02:02:59 +0000 (02:02 +0000)
committerCameron Gutman <aicommander@gmail.com>
Mon, 7 Nov 2011 02:02:59 +0000 (02:02 +0000)
- Fix a potential double-completion of an IRP

svn path=/trunk/; revision=54331

reactos/drivers/network/tcpip/tcpip/dispatch.c

index 11de7b6..aa0a083 100644 (file)
@@ -1516,14 +1516,11 @@ NTSTATUS DispTdiSetInformationEx(
         return Irp->IoStatus.Status;
     }
 
-    Status = DispPrepareIrpForCancel(TranContext, Irp, NULL);
-    if (NT_SUCCESS(Status)) {
-        Request.RequestNotifyObject = DispDataRequestComplete;
-        Request.RequestContext      = Irp;
+    Request.RequestNotifyObject = NULL;
+    Request.RequestContext      = NULL;
 
-        Status = InfoTdiSetInformationEx(&Request, &Info->ID,
+    Status = InfoTdiSetInformationEx(&Request, &Info->ID,
             &Info->Buffer, Info->BufferSize);
-    }
 
     return Status;
 }