Only log threads which not terminated by themselves

Wolfgang Schwotzer wolfgang.schwotzer at gmx.net
Sat Aug 14 04:52:59 CDT 2010


---
 dlls/ws2_32/tests/sock.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index c443a4c..96fa4a1 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -947,9 +947,11 @@ static void do_test( test_setup *test )
     {
         for (i = 0; i <= n; i++)
         {
-            trace ("terminating thread %08x\n", thread_id[i]);
             if ( WaitForSingleObject ( thread[i], 0 ) != WAIT_OBJECT_0 )
+            {
+                trace ("terminating thread %08x\n", thread_id[i]);
                 TerminateThread ( thread [i], 0 );
+            }
         }
     }
     CloseHandle ( server_ready );
-- 
1.6.3.3


--------------010206030707010502060900--



More information about the wine-patches mailing list