[NTOS:PS] Rewrite NtQueryInformationThread to match NtQueryInformationProcess
authorEric Kohl <eric.kohl@reactos.org>
Sun, 2 May 2021 10:46:19 +0000 (12:46 +0200)
committerEric Kohl <eric.kohl@reactos.org>
Sun, 2 May 2021 10:46:55 +0000 (12:46 +0200)
commit55857674608c9e06593e5bf31d33e390c10df23f
tree161aaa74477efca1a6ce058e8f2bd87afead3c22
parent249f2388bd7ce086578119b50c988ba752169fc1
[NTOS:PS] Rewrite NtQueryInformationThread to match NtQueryInformationProcess

The information length must always be checked before referencing the thread object. This fixes the remaining test failure.
ntoskrnl/ps/query.c