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
64731a8e
Commit
64731a8e
authored
Jun 30, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix a few more thread information access rights.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e1e34cdc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
thread.c
dlls/kernel32/tests/thread.c
+0
-3
thread.c
dlls/ntdll/unix/thread.c
+2
-0
thread.c
server/thread.c
+1
-1
No files found.
dlls/kernel32/tests/thread.c
View file @
64731a8e
...
...
@@ -2215,12 +2215,9 @@ static void test_thread_info(void)
#endif
case
ThreadTimes
:
todo_wine
ok
(
status
==
STATUS_SUCCESS
,
"for info %u expected STATUS_SUCCESS, got %08x (ret_len %u)
\n
"
,
i
,
status
,
ret_len
);
break
;
case
ThreadAffinityMask
:
case
ThreadQuerySetWin32StartAddress
:
case
ThreadIsIoPending
:
todo_wine
ok
(
status
==
STATUS_ACCESS_DENIED
,
"for info %u expected STATUS_ACCESS_DENIED, got %08x (ret_len %u)
\n
"
,
i
,
status
,
ret_len
);
...
...
dlls/ntdll/unix/thread.c
View file @
64731a8e
...
...
@@ -895,6 +895,7 @@ NTSTATUS WINAPI NtQueryInformationThread( HANDLE handle, THREADINFOCLASS class,
SERVER_START_REQ
(
get_thread_info
)
{
req
->
handle
=
wine_server_obj_handle
(
handle
);
req
->
access
=
THREAD_QUERY_INFORMATION
;
if
(
!
(
status
=
wine_server_call
(
req
)))
affinity
=
reply
->
affinity
&
affinity_mask
;
}
SERVER_END_REQ
;
...
...
@@ -973,6 +974,7 @@ NTSTATUS WINAPI NtQueryInformationThread( HANDLE handle, THREADINFOCLASS class,
SERVER_START_REQ
(
get_thread_info
)
{
req
->
handle
=
wine_server_obj_handle
(
handle
);
req
->
access
=
THREAD_QUERY_INFORMATION
;
status
=
wine_server_call
(
req
);
if
(
status
==
STATUS_SUCCESS
)
{
...
...
server/thread.c
View file @
64731a8e
...
...
@@ -1553,7 +1553,7 @@ DECL_HANDLER(get_thread_times)
{
struct
thread
*
thread
;
if
((
thread
=
get_thread_from_handle
(
req
->
handle
,
THREAD_QUERY_INFORMATION
)))
if
((
thread
=
get_thread_from_handle
(
req
->
handle
,
THREAD_QUERY_
LIMITED_
INFORMATION
)))
{
reply
->
creation_time
=
thread
->
creation_time
;
reply
->
exit_time
=
thread
->
exit_time
;
...
...
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