https://bugs.winehq.org/show_bug.cgi?id=55352
Bug ID: 55352 Summary: NtTerminateThread should accept handle==0 as current thread Product: Wine Version: 8.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: ake.rehnman@gmail.com Distribution: ---
Created attachment 74936 --> https://bugs.winehq.org/attachment.cgi?id=74936 Example using thread handle 0 to NtTerminateThread
Windows accepts thread handle 0 as current thread.
See attached example
Output from example:
c:\temp>test_ntterminatethread.exe h=0000000000000020 call NtTerminateThread h=0 thread exitcode=1234
https://bugs.winehq.org/show_bug.cgi?id=55352
--- Comment #1 from ake.rehnman@gmail.com --- I should also mention Wine version of NtTerminateThread return STATUS_INVALID_HANDLE if 0 is used as thread handle.
https://bugs.winehq.org/show_bug.cgi?id=55352
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source, testcase
--- Comment #2 from Ken Sharp imwellcushtymelike@gmail.com --- Are you able to provide a patch?
You should use the latest Wine from git if you can.
https://bugs.winehq.org/show_bug.cgi?id=55352
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
https://bugs.winehq.org/show_bug.cgi?id=55352
--- Comment #3 from ake.rehnman@gmail.com --- https://gitlab.winehq.org/wine/wine/-/merge_requests/3447