[PATCH] removed superflous < 0 check
Marcus Meissner
marcus at jet.franken.de
Fri Feb 15 13:46:23 CST 2008
DWORDS cannot be < 0, they are unsigned.
Ciao, Marcus
---
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..aabae37 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);
--
1.5.2.4
More information about the wine-patches
mailing list