diff --git a/lib/registry.js b/lib/registry.js
index <HASH>..<HASH> 100644
--- a/lib/registry.js
+++ b/lib/registry.js
@@ -41,7 +41,7 @@ exports.value = function (hive, key, valueName, callback) {
 
   key = Array.isArray(key) ? key.join('\\') : key
 
-  const result = registry.enumerateValues(hive, key)
+  const result = registry.enumerateValuesSafe(hive, key)
   const expectedName = valueName || ''
   const fqk = [shortHive || hive, key].join('\\')
 
@@ -63,7 +63,7 @@ exports.values = function (hive, key, callback) {
     hive = SHORT_HIVES.get(hive)
   }
 
-  const result = registry.enumerateValues(hive, key)
+  const result = registry.enumerateValuesSafe(hive, key)
   const obj = {}
 
   for (const item of result) {
Avoid errors if the registry is not readable (#<I>)

Previously this could happen if the user did not have access

to the given hive or key.