Marcus Meissner : dinput: Removed superflous < 0 check.
Alexandre Julliard
julliard at winehq.org
Sat Feb 16 09:57:35 CST 2008
Module: wine
Branch: master
Commit: f1a688a9462373c6b2dcd6d0992cc2d36ab5d397
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f1a688a9462373c6b2dcd6d0992cc2d36ab5d397
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Fri Feb 15 20:46:23 2008 +0100
dinput: Removed superflous < 0 check.
---
dlls/dinput/effect_linuxinput.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/dinput/effect_linuxinput.c b/dlls/dinput/effect_linuxinput.c
index 6cc5ad2..0dfbe23 100644
--- a/dlls/dinput/effect_linuxinput.c
+++ b/dlls/dinput/effect_linuxinput.c
@@ -185,8 +185,8 @@ static void _dump_DIEFFECT(LPCDIEFFECT eff, REFGUID guid)
_dump_DIEFFECT_flags(eff->dwFlags);
TRACE(" - dwDuration: %d\n", eff->dwDuration);
TRACE(" - dwGain: %d\n", eff->dwGain);
- if ((eff->dwGain > 10000) || (eff->dwGain < 0))
- WARN("dwGain is out of range (0 - 10,000)\n");
+ if (eff->dwGain > 10000)
+ WARN("dwGain is out of range (>10,000)\n");
TRACE(" - dwTriggerButton: %d\n", eff->dwTriggerButton);
TRACE(" - dwTriggerRepeatInterval: %d\n", eff->dwTriggerRepeatInterval);
TRACE(" - cAxes: %d\n", eff->cAxes);
More information about the wine-cvs
mailing list