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
0d21e1cb
Commit
0d21e1cb
authored
Feb 15, 2022
by
Brendan Shanks
Committed by
Alexandre Julliard
Oct 31, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Only require THREAD_SET_LIMITED_INFORMATION access to set thread description.
parent
21c37356
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
thread.c
dlls/kernel32/tests/thread.c
+0
-2
thread.c
server/thread.c
+3
-1
No files found.
dlls/kernel32/tests/thread.c
View file @
0d21e1cb
...
...
@@ -2538,13 +2538,11 @@ static void test_thread_description(void)
thread
=
OpenThread
(
THREAD_SET_LIMITED_INFORMATION
,
FALSE
,
GetCurrentThreadId
());
hr
=
pSetThreadDescription
(
thread
,
desc
);
todo_wine
ok
(
hr
==
HRESULT_FROM_NT
(
STATUS_SUCCESS
),
"Failed to set thread description, hr %#lx.
\n
"
,
hr
);
ptr
=
NULL
;
hr
=
pGetThreadDescription
(
GetCurrentThread
(),
&
ptr
);
ok
(
hr
==
HRESULT_FROM_NT
(
STATUS_SUCCESS
),
"Failed to get thread description, hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
!
lstrcmpW
(
ptr
,
desc
),
"Unexpected description %s.
\n
"
,
wine_dbgstr_w
(
ptr
));
LocalFree
(
ptr
);
...
...
server/thread.c
View file @
0d21e1cb
...
...
@@ -1534,8 +1534,10 @@ DECL_HANDLER(get_thread_times)
DECL_HANDLER
(
set_thread_info
)
{
struct
thread
*
thread
;
unsigned
int
access
=
(
req
->
mask
==
SET_THREAD_INFO_DESCRIPTION
)
?
THREAD_SET_LIMITED_INFORMATION
:
THREAD_SET_INFORMATION
;
if
((
thread
=
get_thread_from_handle
(
req
->
handle
,
THREAD_SET_INFORMATION
)))
if
((
thread
=
get_thread_from_handle
(
req
->
handle
,
access
)))
{
set_thread_info
(
thread
,
req
);
release_object
(
thread
);
...
...
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