From ad70cd4bbe0d439222427cb987b52893975f7ca3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Wed, 30 Apr 2003 21:56:22 +0000 Subject: [PATCH] Implement ThreadBasePriority case for NtSetInformationThread() svn path=/trunk/; revision=4625 --- reactos/ntoskrnl/ps/tinfo.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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: