From c13946eae2b06f774a7213a705eb494ae7ce4e20 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 7 Nov 2011 02:02:59 +0000 Subject: [PATCH] [TCPIP] - Fix a potential double-completion of an IRP svn path=/trunk/; revision=54331 --- reactos/drivers/network/tcpip/tcpip/dispatch.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/reactos/drivers/network/tcpip/tcpip/dispatch.c b/reactos/drivers/network/tcpip/tcpip/dispatch.c index 11de7b6d93b..aa0a0835fd2 100644 --- a/reactos/drivers/network/tcpip/tcpip/dispatch.c +++ b/reactos/drivers/network/tcpip/tcpip/dispatch.c @@ -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; }