Skip to content

HClient sample application

Compare
Choose a tag to compare
@VSC-Service-Account VSC-Service-Account released this 24 Aug 20:43
aaeca58
fix bug in PackReport (#534)

Data is pointer to array of HID_DATA structure.
Function advances pointer as it packs the report buffer.
At end of process the function attempts to go back through the buffer and update the IsDataSet member.
What it's actually doing is writing unexpected memory locations.

Fix is to store the head of the array and move back before walking again to set the bits.