diff --git a/reactos/ntoskrnl/ps/tinfo.c b/reactos/ntoskrnl/ps/tinfo.c index cbb0dc5a8c8..09e8a3ba5ea 100644 --- a/reactos/ntoskrnl/ps/tinfo.c +++ b/reactos/ntoskrnl/ps/tinfo.c @@ -1,4 +1,4 @@ -/* $Id: tinfo.c,v 1.19 2002/09/08 10:23:41 chorns Exp $ +/* $Id: tinfo.c,v 1.20 2003/04/30 21:56:22 gvg Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -13,6 +13,7 @@ #include #include +#include #include @@ -71,7 +72,14 @@ NtSetInformationThread(HANDLE ThreadHandle, } case ThreadBasePriority: - Status = STATUS_NOT_IMPLEMENTED; + if (ThreadInformationLength != sizeof(ULONG)) + { + Status = STATUS_INFO_LENGTH_MISMATCH; + break; + } + Status = MmCopyFromCaller(&(Thread->Tcb.BasePriority), + ThreadInformation, + sizeof(ULONG)); break; case ThreadAffinityMask: