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