1
0
mirror of https://github.com/DarthAffe/CUE.NET.git synced 2025-12-13 00:58:31 +00:00

Fixed weird comment

This commit is contained in:
unknown 2015-09-19 15:42:44 +02:00
parent 7efdb9ca7d
commit ce4e80c24b

View File

@ -40,7 +40,7 @@ namespace CUE.NET.Wrapper
IList<KeyValuePair<int, CorsairLed>> 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);