diff --git a/Wrapper/AbstractCueDevice.cs b/Wrapper/AbstractCueDevice.cs index f38abde..43f41cd 100644 --- a/Wrapper/AbstractCueDevice.cs +++ b/Wrapper/AbstractCueDevice.cs @@ -40,7 +40,7 @@ namespace CUE.NET.Wrapper IList> ledsToUpdate = (fullUpdate ? Leds : Leds.Where(x => x.Value.IsDirty)).ToList(); if (!ledsToUpdate.Any()) - return; // CUE seems to crash if 'CorsairSetLedsColors' with a zero length array + return; // CUE seems to crash if 'CorsairSetLedsColors' is called with a zero length array int structSize = Marshal.SizeOf(typeof(_CorsairLedColor)); IntPtr ptr = Marshal.AllocHGlobal(structSize * ledsToUpdate.Count);