Fix problem with some logitec usb wireless mice.

Submitted by:	Markus <mw@kpnqwest.ch>
Tested by:	Randy Bush <randy@psg.com>
This commit is contained in:
David E. O'Brien 2005-02-06 12:41:00 +00:00
parent 1af305441d
commit 61d087cf53

View File

@ -375,7 +375,7 @@ hid_report_size(void *buf, int len, enum hid_kind k, u_int8_t *idp)
id = 0;
for (d = hid_start_parse(buf, len, 1<<k); hid_get_item(d, &h); )
if (h.report_ID != 0)
if (h.report_ID != 0 && !id)
id = h.report_ID;
hid_end_parse(d);
size = h.loc.pos;