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
f726b6ba
Commit
f726b6ba
authored
Oct 18, 2022
by
Brendan Shanks
Committed by
Alexandre Julliard
Nov 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Print correct thread rename trace if non-pseudo-handle to current thread is used.
parent
0c38bb0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
thread.c
dlls/ntdll/unix/thread.c
+3
-2
No files found.
dlls/ntdll/unix/thread.c
View file @
f726b6ba
...
...
@@ -2282,9 +2282,10 @@ NTSTATUS WINAPI NtSetInformationThread( HANDLE handle, THREADINFOCLASS class,
if
(
!
info
)
return
STATUS_ACCESS_VIOLATION
;
if
(
info
->
ThreadName
.
Length
&&
!
info
->
ThreadName
.
Buffer
)
return
STATUS_ACCESS_VIOLATION
;
if
(
handle
==
GetCurrentThread
())
status
=
NtQueryInformationThread
(
handle
,
ThreadBasicInformation
,
&
tbi
,
sizeof
(
tbi
),
NULL
);
if
(
handle
==
GetCurrentThread
()
||
(
!
status
&&
(
HandleToULong
(
tbi
.
ClientId
.
UniqueThread
)
==
GetCurrentThreadId
())))
WARN_
(
threadname
)(
"Thread renamed to %s
\n
"
,
debugstr_us
(
&
info
->
ThreadName
)
);
else
if
(
!
NtQueryInformationThread
(
handle
,
ThreadBasicInformation
,
&
tbi
,
sizeof
(
tbi
),
NULL
)
)
else
if
(
!
status
)
WARN_
(
threadname
)(
"Thread ID %04x renamed to %s
\n
"
,
HandleToULong
(
tbi
.
ClientId
.
UniqueThread
),
debugstr_us
(
&
info
->
ThreadName
)
);
else
WARN_
(
threadname
)(
"Thread handle %p renamed to %s
\n
"
,
handle
,
debugstr_us
(
&
info
->
ThreadName
)
);
...
...
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