Daniel Lehman : msvcrt: Fix build warnings.
Alexandre Julliard
julliard at winehq.org
Tue Apr 4 14:54:52 CDT 2017
Module: wine
Branch: master
Commit: 21d6e97d8dea514c9fe147cfc190e92b411828dd
URL: http://source.winehq.org/git/wine.git/?a=commit;h=21d6e97d8dea514c9fe147cfc190e92b411828dd
Author: Daniel Lehman <dlehman at esri.com>
Date: Mon Apr 3 14:08:28 2017 -0700
msvcrt: Fix build warnings.
Signed-off-by: Daniel Lehman <dlehman at esri.com>
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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];
}
More information about the wine-cvs
mailing list