From: Rémi Bernon rbernon@codeweavers.com
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57216 --- dlls/dinput/mouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/dinput/mouse.c b/dlls/dinput/mouse.c index 2d4e0a6b42c..eec022974b5 100644 --- a/dlls/dinput/mouse.c +++ b/dlls/dinput/mouse.c @@ -243,7 +243,7 @@ int dinput_mouse_hook( IDirectInputDevice8W *iface, WPARAM wparam, LPARAM lparam } case WM_MOUSEWHEEL: state->lZ += (short)HIWORD( hook->mouseData ); - queue_event( iface, 2, state->lZ, GetCurrentTime(), seq ); + queue_event( iface, 2, (short)HIWORD( hook->mouseData ), GetCurrentTime(), seq ); /* FarCry crashes if it gets a mouse wheel message */ /* FIXME: should probably filter out other messages too */ ret = impl->clipped;