Commit 21d6e97d authored by Daniel Lehman's avatar Daniel Lehman Committed by Alexandre Julliard

msvcrt: Fix build warnings.

parent b98ece0d
...@@ -471,7 +471,7 @@ unsigned int __thiscall SchedulerPolicy_SetPolicyValue(SchedulerPolicy *this, ...@@ -471,7 +471,7 @@ unsigned int __thiscall SchedulerPolicy_SetPolicyValue(SchedulerPolicy *this,
throw_exception(EXCEPTION_INVALID_SCHEDULER_POLICY_KEY, 0, "MinConcurrency"); throw_exception(EXCEPTION_INVALID_SCHEDULER_POLICY_KEY, 0, "MinConcurrency");
if (policy == MaxConcurrency) if (policy == MaxConcurrency)
throw_exception(EXCEPTION_INVALID_SCHEDULER_POLICY_KEY, 0, "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"); throw_exception(EXCEPTION_INVALID_SCHEDULER_POLICY_KEY, 0, "Invalid policy");
switch(policy) { switch(policy) {
...@@ -531,7 +531,7 @@ unsigned int __thiscall SchedulerPolicy_GetPolicyValue( ...@@ -531,7 +531,7 @@ unsigned int __thiscall SchedulerPolicy_GetPolicyValue(
{ {
TRACE("(%p %d)\n", this, policy); 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"); throw_exception(EXCEPTION_INVALID_SCHEDULER_POLICY_KEY, 0, "Invalid policy");
return this->policy_container->policies[policy]; return this->policy_container->policies[policy];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment