[ros-diffs] [cgutman] 36784: - Kill the thread if KeWaitForSingleObject didn't return STATUS_TIMEOUT

cgutman at svn.reactos.org cgutman at svn.reactos.org
Fri Oct 17 12:27:21 CEST 2008


Author: cgutman
Date: Fri Oct 17 05:27:20 2008
New Revision: 36784

URL: http://svn.reactos.org/svn/reactos?rev=36784&view=rev
Log:
 - Kill the thread if KeWaitForSingleObject didn't return STATUS_TIMEOUT

Modified:
    branches/aicom-network-fixes/lib/drivers/ip/transport/tcp/tcp.c

Modified: branches/aicom-network-fixes/lib/drivers/ip/transport/tcp/tcp.c
URL: http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/lib/drivers/ip/transport/tcp/tcp.c?rev=36784&r1=36783&r2=36784&view=diff
==============================================================================
--- branches/aicom-network-fixes/lib/drivers/ip/transport/tcp/tcp.c [iso-8859-1] (original)
+++ branches/aicom-network-fixes/lib/drivers/ip/transport/tcp/tcp.c [iso-8859-1] Fri Oct 17 05:27:20 2008
@@ -406,10 +406,9 @@
         Timeout.QuadPart = (LONGLONG) (Next - Current) * -1000000; /* 100 ms */
         Status = KeWaitForSingleObject(&TimerLoopEvent, Executive, KernelMode,
                                        FALSE, &Timeout);
-        if (STATUS_SUCCESS == Status) {
-            PsTerminateSystemThread(STATUS_SUCCESS);
+        if (Status != STATUS_TIMEOUT) {
+            PsTerminateSystemThread(Status);
         }
-        ASSERT(STATUS_TIMEOUT == Status);
 
         TcpipRecursiveMutexEnter( &TCPLock, TRUE );
         TimerOskitTCP( Next == NextFast, Next == NextSlow );



More information about the Ros-diffs mailing list