mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Fix a bug in NtQueryInformationThread, which was leading to its unusability in user mode
svn path=/trunk/; revision=23532
This commit is contained in:
@@ -890,12 +890,13 @@ NtQueryInformationThread(IN HANDLE ThreadHandle,
|
||||
PAGED_CODE();
|
||||
|
||||
/* Verify Information Class validity */
|
||||
Status = DefaultSetInfoBufferCheck(ThreadInformationClass,
|
||||
PsThreadInfoClass,
|
||||
RTL_NUMBER_OF(PsThreadInfoClass),
|
||||
ThreadInformation,
|
||||
ThreadInformationLength,
|
||||
PreviousMode);
|
||||
Status = DefaultQueryInfoBufferCheck(ThreadInformationClass,
|
||||
PsThreadInfoClass,
|
||||
RTL_NUMBER_OF(PsThreadInfoClass),
|
||||
ThreadInformation,
|
||||
ThreadInformationLength,
|
||||
ReturnLength,
|
||||
PreviousMode);
|
||||
if (!NT_SUCCESS(Status)) return Status;
|
||||
|
||||
/* Check what class this is */
|
||||
|
||||
Reference in New Issue
Block a user