mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2025-12-13 09:08:34 +00:00
Fixed weird comment
This commit is contained in:
parent
7efdb9ca7d
commit
ce4e80c24b
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user