diff --git a/DerpingDrivers/Util/CodeIntegrityPolicyHelper.cs b/DerpingDrivers/Util/CodeIntegrityPolicyHelper.cs
index e79b31d..72d3501 100644
--- a/DerpingDrivers/Util/CodeIntegrityPolicyHelper.cs
+++ b/DerpingDrivers/Util/CodeIntegrityPolicyHelper.cs
@@ -3,8 +3,14 @@ using Microsoft.Win32;
namespace DerpingDrivers.Util
{
+ ///
+ /// Utility class for interaction with Code Integrity Policy settings.
+ ///
public static class CodeIntegrityPolicyHelper
{
+ ///
+ /// Gets or sets whether the kernel allows loading of "traditional" cross-signed drivers.
+ ///
public static bool WhqlDeveloperTestMode
{
get
@@ -12,9 +18,7 @@ namespace DerpingDrivers.Util
var value = (int?) Registry.GetValue(@"HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\CI\Policy",
"WhqlDeveloperTestMode", null);
- if (value == null) return false;
-
- return value > 0;
+ return (value.HasValue && value.Value > 0);
}
set => Registry.SetValue(@"HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\CI\Policy",