Changed GetRootKey so that it throws a Exception instead of returning null

This commit is contained in:
StingRaptor 2016-01-22 16:28:29 +01:00
parent 1e5186de55
commit 30f1d30fc8
1 changed files with 2 additions and 1 deletions

View File

@ -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");
}
}