Skip to content

Commit

Permalink
Merge pull request #347 from Kanuan/fix-sxs-led-driver-authority
Browse files Browse the repository at this point in the history
Fix backing up current LED state when using driver LED authority in SXS processing
  • Loading branch information
nefarius authored Apr 21, 2024
2 parents d945bac + 00e8cda commit c77652d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/DsHidMiniDrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ DsHidMini_WriteReport(
//
// Backup LED states
//
RtlCopyMemory(ledBlock, &buffer[10], ARRAYSIZE(ledBlock));
RtlCopyMemory(ledBlock, &buffer[9], ARRAYSIZE(ledBlock));

//
// Overwrite with what we received
Expand All @@ -1089,7 +1089,7 @@ DsHidMini_WriteReport(
//
// Restore LED states
//
RtlCopyMemory(&buffer[10], ledBlock, ARRAYSIZE(ledBlock));
RtlCopyMemory(&buffer[9], ledBlock, ARRAYSIZE(ledBlock));
}
else
{
Expand Down

0 comments on commit c77652d

Please sign in to comment.