"Matt Jones" mattj@google.com writes:
Change SetThreadPriority to correctly handle invalid priority values From 40bcdbe07d2f5cc0e5de33512858625f940b9c8c Mon Sep 17 00:00:00 2001 From: Matt Jones mattj@google.com Date: Tue, 17 Jul 2007 14:58:01 -0700 Subject: [PATCH] server: Conform to SetThreadPriority check (only set priority if the new priority is valid), try 2
You most likely need to return an error for invalid values, and in any case you have to check that in your test case.