Actually use the registryView parameter

This commit is contained in:
Sam Harwell 2013-03-14 05:31:47 -05:00
parent fe57b88b4b
commit c6bb5be737
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ namespace Antlr4.Build.Tasks
javaHome = null;
string javaKeyName = "SOFTWARE\\JavaSoft\\Java Runtime Environment";
using (var baseKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Default))
using (var baseKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, registryView))
{
using (RegistryKey javaKey = baseKey.OpenSubKey(javaKeyName))
{