PERFORCE change 157868 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Tue Feb 17 13:35:40 PST 2009
http://perforce.freebsd.org/chv.cgi?CH=157868
Change 157868 by hselasky at hselasky_laptop001 on 2009/02/17 21:34:44
USB INPUT: Correct my Microsoft UMS patch.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb2/input/ums2.c#16 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb2/input/ums2.c#16 (text+ko) ====
@@ -511,7 +511,8 @@
* positions. Correct this:
*/
isizebits = isize * 8;
- if (isizebits <= 0) {
+ if ((sc->sc_iid != 0) && (isizebits > 8)) {
+ isizebits -= 8; /* remove size of report ID */
sc->sc_loc_w.pos %= isizebits;
sc->sc_loc_x.pos %= isizebits;
sc->sc_loc_y.pos %= isizebits;
More information about the p4-projects
mailing list