server: Only commit SetThreadPriority if new priority is correct (try 2)

Robert Shearman rob at codeweavers.com
Thu Jul 19 15:41:40 CDT 2007


Matt Jones wrote:
> +        if ((req->priority >= min ||
> +             req->priority == THREAD_PRIORITY_IDLE) ||
> +            (req->priority <= max ||
> +             req->priority == THREAD_PRIORITY_TIME_CRITICAL))
> +            thread->priority = req->priority;
> +    }
>   

This doesn't look correct. There should be an && in there instead of one 
of the || operators.

-- 
Rob Shearman




More information about the wine-devel mailing list