From 30f1d30fc8527cebe6ba65b71064c7fbe607401a Mon Sep 17 00:00:00 2001 From: StingRaptor Date: Fri, 22 Jan 2016 16:28:29 +0100 Subject: [PATCH] Changed GetRootKey so that it throws a Exception instead of returning null --- Client/Core/Registry/RegistrySeeker.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Client/Core/Registry/RegistrySeeker.cs b/Client/Core/Registry/RegistrySeeker.cs index 4d07d355..2daa9c04 100644 --- a/Client/Core/Registry/RegistrySeeker.cs +++ b/Client/Core/Registry/RegistrySeeker.cs @@ -318,7 +318,8 @@ namespace xClient.Core.Registry case "HKEY_CURRENT_CONFIG": return Microsoft.Win32.Registry.CurrentConfig; default: - return null; + /* If none of the above then the key must be invalid */ + throw new Exception("Invalid rootkey, could not be found"); } }