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
e8b26306
Commit
e8b26306
authored
Jul 09, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use NtQueryInformationThread to implement GetExitCodeThread.
parent
04c1f9f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
thread.c
scheduler/thread.c
+9
-8
No files found.
scheduler/thread.c
View file @
e8b26306
...
@@ -385,16 +385,17 @@ BOOL WINAPI GetExitCodeThread(
...
@@ -385,16 +385,17 @@ BOOL WINAPI GetExitCodeThread(
HANDLE
hthread
,
/* [in] Handle to thread */
HANDLE
hthread
,
/* [in] Handle to thread */
LPDWORD
exitcode
)
/* [out] Address to receive termination status */
LPDWORD
exitcode
)
/* [out] Address to receive termination status */
{
{
BOOL
ret
;
THREAD_BASIC_INFORMATION
info
;
SERVER_START_REQ
(
get_thread_info
)
NTSTATUS
status
=
NtQueryInformationThread
(
hthread
,
ThreadBasicInformation
,
&
info
,
sizeof
(
info
),
NULL
);
if
(
status
)
{
{
req
->
handle
=
hthread
;
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
req
->
tid_in
=
0
;
return
FALSE
;
ret
=
!
wine_server_call_err
(
req
);
if
(
ret
&&
exitcode
)
*
exitcode
=
reply
->
exit_code
;
}
}
SERVER_END_REQ
;
if
(
exitcode
)
*
exitcode
=
info
.
ExitStatus
;
return
ret
;
return
TRUE
;
}
}
...
...
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