There's a difference between a handle and an object... Sorry about this

svn path=/trunk/; revision=20320
This commit is contained in:
Gé van Geldorp 2005-12-24 09:33:35 +00:00
parent c5454d2a4b
commit d22675a805

View file

@ -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);