Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
fac1aabb
Commit
fac1aabb
authored
Apr 24, 2023
by
Tim Clem
Committed by
Alexandre Julliard
May 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Decrement thread count from exit_thread and exit the process if needed.
parent
f88affa2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
thread.c
dlls/ntdll/unix/thread.c
+2
-0
No files found.
dlls/ntdll/unix/thread.c
View file @
fac1aabb
...
...
@@ -1429,6 +1429,8 @@ static DECLSPEC_NORETURN void exit_thread( int status )
pthread_sigmask
(
SIG_BLOCK
,
&
server_block_set
,
NULL
);
if
(
InterlockedDecrement
(
&
nb_threads
)
<=
0
)
exit_process
(
status
);
if
((
teb
=
InterlockedExchangePointer
(
&
prev_teb
,
NtCurrentTeb
()
)))
{
struct
ntdll_thread_data
*
thread_data
=
(
struct
ntdll_thread_data
*
)
&
teb
->
GdiTebBatch
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment