Sebastian Lackner : ntdll: Add missing calls to RtlExitUserThread.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jul 8 09:51:23 CDT 2015


Module: wine
Branch: master
Commit: f65f645c3f7a4460266663fdf1722d80168379d9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f65f645c3f7a4460266663fdf1722d80168379d9

Author: Sebastian Lackner <sebastian at fds-team.de>
Date:   Wed Jul  8 07:07:41 2015 +0200

ntdll: Add missing calls to RtlExitUserThread.

---

 dlls/ntdll/threadpool.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/ntdll/threadpool.c b/dlls/ntdll/threadpool.c
index 3f54208..a4e0619 100644
--- a/dlls/ntdll/threadpool.c
+++ b/dlls/ntdll/threadpool.c
@@ -968,6 +968,7 @@ static void WINAPI timer_queue_thread_proc(LPVOID p)
     RtlDeleteCriticalSection(&q->cs);
     q->magic = 0;
     RtlFreeHeap(GetProcessHeap(), 0, q);
+    RtlExitUserThread( 0 );
 }
 
 static void queue_destroy_timer(struct queue_timer *t)
@@ -1361,6 +1362,7 @@ static void CALLBACK timerqueue_thread_proc( void *param )
     RtlLeaveCriticalSection( &timerqueue.cs );
 
     TRACE( "terminating timer queue thread\n" );
+    RtlExitUserThread( 0 );
 }
 
 /***********************************************************************
@@ -1585,6 +1587,7 @@ static void CALLBACK waitqueue_thread_proc( void *param )
     NtClose( bucket->update_event );
 
     RtlFreeHeap( GetProcessHeap(), 0, bucket );
+    RtlExitUserThread( 0 );
 }
 
 /***********************************************************************
@@ -2312,6 +2315,7 @@ static void CALLBACK threadpool_worker_proc( void *param )
 
     TRACE( "terminating worker thread for pool %p\n", pool );
     tp_threadpool_release( pool );
+    RtlExitUserThread( 0 );
 }
 
 /***********************************************************************




More information about the wine-cvs mailing list