summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalim Alam <salam@chef.io>2015-08-31 10:35:45 -0700
committerSalim Alam <salam@chef.io>2015-08-31 10:35:45 -0700
commit0047f4cd275a52aacc14ad8f45c323da3cb93b86 (patch)
treec0f24f094dc6e35b12e7e0b1b76449fd93fffe3e
parent998a1341989dc6447061c46629e8d2da8a28e53a (diff)
downloadchef-0047f4cd275a52aacc14ad8f45c323da3cb93b86.tar.gz
Fix constant
-rw-r--r--lib/chef/win32/registry.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/win32/registry.rb b/lib/chef/win32/registry.rb
index ba41a4af1d..2bb7b78965 100644
--- a/lib/chef/win32/registry.rb
+++ b/lib/chef/win32/registry.rb
@@ -154,7 +154,7 @@ class Chef
#instead of the 'RegDeleteKey'
def delete_key_ex(hive, key)
hive_num = hive.hkey - (1 << 32)
- RegDeleteKeyExW(hive_num, wstring(key), ::Win32::Registry::KEY_WRITE | registry_system_architecture, 0) == ERROR_SUCCESS
+ RegDeleteKeyExW(hive_num, wstring(key), ::Win32::Registry::KEY_WRITE | registry_system_architecture, 0) == 0
end
def key_exists?(key_path)