From d22675a805366cac642f50839cf1240d233a1abb Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=A9=20van=20Geldorp?= Date: Sat, 24 Dec 2005 09:33:35 +0000 Subject: [PATCH] There's a difference between a handle and an object... Sorry about this svn path=/trunk/; revision=20320 --- reactos/drivers/lib/ip/transport/tcp/tcp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/reactos/drivers/lib/ip/transport/tcp/tcp.c b/reactos/drivers/lib/ip/transport/tcp/tcp.c index 1f7961660e6..8846ef8cf1c 100644 --- a/reactos/drivers/lib/ip/transport/tcp/tcp.c +++ b/reactos/drivers/lib/ip/transport/tcp/tcp.c @@ -419,9 +419,8 @@ NTSTATUS TCPShutdown(VOID) return STATUS_SUCCESS; WaitForThread.QuadPart = -2500000; /* 250 ms */ - KeSetEvent(&TimerLoopEvent, IO_NO_INCREMENT, TRUE); - KeWaitForSingleObject(&TimerThreadHandle, Executive, KernelMode, - FALSE, &WaitForThread); + KeSetEvent(&TimerLoopEvent, IO_NO_INCREMENT, FALSE); + ZwWaitForSingleObject(TimerThreadHandle, FALSE, &WaitForThread); /* Deregister this protocol with IP layer */ IPRegisterProtocol(IPPROTO_TCP, NULL); -- 2.17.1