Permalink
Browse files

Logic error fix.

Fixed Logic error from the last commit where the wrong data was checked.
  • Loading branch information...
1 parent 9448fd8 commit 7e93a4e068825d22780702978d41aa3678f10a7d @signal11 signal11 committed Jul 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 windows/hid.cpp
View
@@ -572,7 +572,7 @@ int HID_API_EXPORT HID_API_CALL hid_read(hid_device *dev, unsigned char *data, s
dev->read_pending = FALSE;
if (res && bytes_read > 0) {
- if (data[0] == 0x0) {
+ if (dev->read_buf[0] == 0x0) {
/* If report numbers aren't being used, but Windows sticks a report
number (0x0) on the beginning of the report anyway. To make this
work like the other platforms, and to make it work more like the

0 comments on commit 7e93a4e

Please sign in to comment.