Author: hpoussin Date: Wed Aug 9 16:15:18 2006 New Revision: 23532
URL: http://svn.reactos.org/svn/reactos?rev=23532&view=rev Log: Fix a bug in NtQueryInformationThread, which was leading to its unusability in user mode
Modified: trunk/reactos/ntoskrnl/ps/query.c
Modified: trunk/reactos/ntoskrnl/ps/query.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/query.c?rev=235... ============================================================================== --- trunk/reactos/ntoskrnl/ps/query.c (original) +++ trunk/reactos/ntoskrnl/ps/query.c Wed Aug 9 16:15:18 2006 @@ -890,12 +890,13 @@ 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 */