Fix MSI 761 direct mode bounds check comparing a byte offset against an LED count
This commit is contained in:
committed by
Adam Honse
parent
853074d80c
commit
77a474b993
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user