Fixed weird comment

This commit is contained in:
DarthAffe committed 2015-09-19 15:42:44 +02:00
1 parent 7efdb9ca7d
commit ce4e80c24b
1 file changed
+1 -1
+1 -1
View File
@@ -40,7 +40,7 @@ namespace CUE.NET.Wrapper
IList<KeyValuePair<int, CorsairLed>> ledsToUpdate = (fullUpdate ? Leds : Leds.Where(x => x.Value.IsDirty)).ToList(); IList<KeyValuePair<int, CorsairLed>> ledsToUpdate = (fullUpdate ? Leds : Leds.Where(x => x.Value.IsDirty)).ToList();
if (!ledsToUpdate.Any()) 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)); int structSize = Marshal.SizeOf(typeof(_CorsairLedColor));
IntPtr ptr = Marshal.AllocHGlobal(structSize * ledsToUpdate.Count); IntPtr ptr = Marshal.AllocHGlobal(structSize * ledsToUpdate.Count);