branch update for HEAD-2003050101
[reactos.git] / ntoskrnl / ps / tinfo.c
index 63463e2..62675f6 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <ddk/ntddk.h>
 #include <internal/ps.h>
+#include <internal/safe.h>
 
 #include <internal/debug.h>
 
@@ -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: