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
74cdb539
Commit
74cdb539
authored
Oct 29, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Store the exit code in the server in RtlExitUserThread.
parent
21453b4c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
23 deletions
+24
-23
thread.c
dlls/kernel32/thread.c
+2
-21
thread.c
dlls/ntdll/thread.c
+22
-2
No files found.
dlls/kernel32/thread.c
View file @
74cdb539
...
...
@@ -152,27 +152,8 @@ HANDLE WINAPI OpenThread( DWORD dwDesiredAccess, BOOL bInheritHandle, DWORD dwTh
*/
void
WINAPI
ExitThread
(
DWORD
code
)
/* [in] Exit code for this thread */
{
BOOL
last
;
SERVER_START_REQ
(
terminate_thread
)
{
/* send the exit code to the server */
req
->
handle
=
GetCurrentThread
();
req
->
exit_code
=
code
;
wine_server_call
(
req
);
last
=
reply
->
last
;
}
SERVER_END_REQ
;
if
(
last
)
{
LdrShutdownProcess
();
exit
(
code
);
}
else
{
RtlFreeThreadActivationContextStack
();
RtlExitUserThread
(
code
);
}
RtlFreeThreadActivationContextStack
();
RtlExitUserThread
(
code
);
}
...
...
dlls/ntdll/thread.c
View file @
74cdb539
...
...
@@ -604,8 +604,28 @@ error:
*/
void
WINAPI
RtlExitUserThread
(
ULONG
status
)
{
LdrShutdownThread
();
server_exit_thread
(
status
);
BOOL
last
;
SERVER_START_REQ
(
terminate_thread
)
{
/* send the exit code to the server */
req
->
handle
=
GetCurrentThread
();
req
->
exit_code
=
status
;
wine_server_call
(
req
);
last
=
reply
->
last
;
}
SERVER_END_REQ
;
if
(
last
)
{
LdrShutdownProcess
();
exit
(
status
);
}
else
{
LdrShutdownThread
();
server_exit_thread
(
status
);
}
}
...
...
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