Required for implementation correctness check in certain protection software.
Thanks to mkrsym1 <mkrsym1(a)gmail.com> for the patch!
--
v4: ntdll/tests: Add tests for ret_len on NtQueryInformationThread HideFromDebugger.
ntdll: Return STATUS_ACCESS_VIOLATION from NtQueryInformationThread ThreadHideFromDebugger if *ret_len is not writable.
https://gitlab.winehq.org/wine/wine/-/merge_requests/7579