Added a workaround for some weird issue with the x86 razer-sdk

This commit is contained in:
DarthAffe committed 2018-02-08 20:04:26 +01:00
1 parent 3aa1fd2051
commit 7b5895d2a4
1 file changed
+2 -1
+2 -1
View File
@@ -99,7 +99,8 @@ namespace RGB.NET.Devices.Razer
_RazerSDK.Reload();
RazerError error;
if ((error = _RazerSDK.Init()) != RazerError.Success)
if (((error = _RazerSDK.Init()) != RazerError.Success)
&& Enum.IsDefined(typeof(RazerError), error)) //HACK DarthAffe 08.02.2018: The x86-SDK seems to have a problem here ...
ThrowRazerError(error);
IList<IRGBDevice> devices = new List<IRGBDevice>();