From 79c4a57addc65da0956bb9f964e6f5e0a3061fda Mon Sep 17 00:00:00 2001 From: Yvan Demelin <76664835+YvDem@users.noreply.github.com> Date: Mon, 7 Jul 2025 17:19:16 +0200 Subject: [PATCH] Update HidInjectorKd.c The report descriptor for the mouse and keyboard had padding values that does not match the comment describing the line, nor the size of the KeyReport and MouseReport of the HIDINJECTOR_INPUT_REPORT --- samples/HIDInjector/driver/HidInjectorKd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/HIDInjector/driver/HidInjectorKd.c b/samples/HIDInjector/driver/HidInjectorKd.c index c2c12bb10..8aa408a94 100644 --- a/samples/HIDInjector/driver/HidInjectorKd.c +++ b/samples/HIDInjector/driver/HidInjectorKd.c @@ -44,7 +44,7 @@ HID_REPORT_DESCRIPTOR G_DefaultReportDescriptor[] = 0x75, 0x08, // report size 8 0x95, 0x04, // report count 4 0x81, 0x00, // Input(Data, Array), - 0x95, 0x05, // REPORT_COUNT (2) + 0x95, 0x02, // REPORT_COUNT (2) 0x75, 0x08, // REPORT_SIZE (8) 0x81, 0x03, // INPUT (Cnst,Var,Abs) 0xC0, // End Collection, @@ -78,7 +78,7 @@ HID_REPORT_DESCRIPTOR G_DefaultReportDescriptor[] = 0x75, 0x10, // Report Size(16) 0x95, 0x02, // Report Count(2) 0x81, 0x62, // Input(Data, Variable, Absolute, No Preferred, Null State) - 0x95, 0x05, // REPORT_COUNT (2) + 0x95, 0x02, // REPORT_COUNT (2) 0x75, 0x08, // REPORT_SIZE (8) 0x81, 0x03, // INPUT (Cnst,Var,Abs) 0xc0, // END_COLLECTION