From ce4e80c24bbe14b9ab14d849c197ac2a8fe379c6 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 19 Sep 2015 15:42:44 +0200 Subject: [PATCH] Fixed weird comment --- Wrapper/AbstractCueDevice.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);