There's a difference between a handle and an object... Sorry about this
authorGé van Geldorp <ge@gse.nl>
Sat, 24 Dec 2005 09:33:35 +0000 (09:33 +0000)
committerGé van Geldorp <ge@gse.nl>
Sat, 24 Dec 2005 09:33:35 +0000 (09:33 +0000)
svn path=/trunk/; revision=20320

reactos/drivers/lib/ip/transport/tcp/tcp.c

index 1f79616..8846ef8 100644 (file)
@@ -419,9 +419,8 @@ NTSTATUS TCPShutdown(VOID)
        return STATUS_SUCCESS;
 
     WaitForThread.QuadPart = -2500000; /* 250 ms */
        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);
 
     /* Deregister this protocol with IP layer */
     IPRegisterProtocol(IPPROTO_TCP, NULL);