Author: cgutman
Date: Thu Jan 26 02:20:11 2012
New Revision: 55190
URL:
http://svn.reactos.org/svn/reactos?rev=55190&view=rev
Log:
[MOUHID]
- Only set the MOUSE_WHEEL flag if the wheel data is non-zero
Modified:
branches/usb-bringup-trunk/drivers/hid/mouhid/mouhid.c
Modified: branches/usb-bringup-trunk/drivers/hid/mouhid/mouhid.c
URL:
http://svn.reactos.org/svn/reactos/branches/usb-bringup-trunk/drivers/hid/m…
==============================================================================
--- branches/usb-bringup-trunk/drivers/hid/mouhid/mouhid.c [iso-8859-1] (original)
+++ branches/usb-bringup-trunk/drivers/hid/mouhid/mouhid.c [iso-8859-1] Thu Jan 26
02:20:11 2012
@@ -215,7 +215,7 @@
/* get usage */
UsageValue = 0;
Status = HidP_GetScaledUsageValue(HidP_Input, HID_USAGE_PAGE_GENERIC,
HIDP_LINK_COLLECTION_UNSPECIFIED, HID_USAGE_GENERIC_WHEEL, &UsageValue,
DeviceExtension->PreparsedData, DeviceExtension->Report,
DeviceExtension->ReportLength);
- if (Status == HIDP_STATUS_SUCCESS)
+ if (Status == HIDP_STATUS_SUCCESS && UsageValue != 0)
{
/* store wheel status */
MouseInputData.ButtonFlags |= MOUSE_WHEEL;