Fix MSI 761 direct mode bounds check comparing a byte offset against an LED count

This commit is contained in:
Soldier Alexander
2026-08-24 20:39:40 -05:00
committed by Adam Honse
parent 853074d80c
commit 77a474b993
@@ -482,7 +482,7 @@ void MSIMotherboard761Controller::SetLedColor
std::size_t candidate_index = (index * 3);
if((candidate_index + 2) <= GetMaxDirectLeds(zone))
if(index < GetMaxDirectLeds(zone))
{
set_data_color(ptr, candidate_index, red);
set_data_color(ptr, candidate_index + 1, grn);