Module: wine Branch: master Commit: 21d6e97d8dea514c9fe147cfc190e92b411828dd URL: http://source.winehq.org/git/wine.git/?a=commit;h=21d6e97d8dea514c9fe147cfc1...
Author: Daniel Lehman dlehman@esri.com Date: Mon Apr 3 14:08:28 2017 -0700
msvcrt: Fix build warnings.
Signed-off-by: Daniel Lehman dlehman@esri.com Signed-off-by: Piotr Caban piotr@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/msvcrt/scheduler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msvcrt/scheduler.c b/dlls/msvcrt/scheduler.c index 4f07bb3..a02d99d 100644 --- a/dlls/msvcrt/scheduler.c +++ b/dlls/msvcrt/scheduler.c @@ -471,7 +471,7 @@ unsigned int __thiscall SchedulerPolicy_SetPolicyValue(SchedulerPolicy *this, throw_exception(EXCEPTION_INVALID_SCHEDULER_POLICY_KEY, 0, "MinConcurrency"); if (policy == MaxConcurrency) throw_exception(EXCEPTION_INVALID_SCHEDULER_POLICY_KEY, 0, "MaxConcurrency"); - if (policy < SchedulerKind || policy >= last_policy_id) + if (policy >= last_policy_id) throw_exception(EXCEPTION_INVALID_SCHEDULER_POLICY_KEY, 0, "Invalid policy");
switch(policy) { @@ -531,7 +531,7 @@ unsigned int __thiscall SchedulerPolicy_GetPolicyValue( { TRACE("(%p %d)\n", this, policy);
- if (policy < SchedulerKind || policy >= last_policy_id) + if (policy >= last_policy_id) throw_exception(EXCEPTION_INVALID_SCHEDULER_POLICY_KEY, 0, "Invalid policy"); return this->policy_container->policies[policy]; }