diff options
author | Claire McQuin <claire@chef.io> | 2015-09-03 10:16:49 -0700 |
---|---|---|
committer | Claire McQuin <claire@chef.io> | 2015-09-03 11:18:26 -0700 |
commit | c00a3bdc8e00e512f4c3cbb2ff7169ff20a66672 (patch) | |
tree | 9e38eac5c94ac5f9648927f88a4c9b2ba90ff5bf /lib/chef/monkey_patches | |
parent | 89aaa6076b7c4c4aea0e797d8cfcf6639c90816a (diff) | |
download | chef-c00a3bdc8e00e512f4c3cbb2ff7169ff20a66672.tar.gz |
Remove access mask to RegDeleteKeyExW, it's not useful
Diffstat (limited to 'lib/chef/monkey_patches')
-rw-r--r-- | lib/chef/monkey_patches/win32/registry.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/monkey_patches/win32/registry.rb b/lib/chef/monkey_patches/win32/registry.rb index a754949ca0..9471777c57 100644 --- a/lib/chef/monkey_patches/win32/registry.rb +++ b/lib/chef/monkey_patches/win32/registry.rb @@ -23,8 +23,7 @@ module Win32 # ::Win32::Registry#delete_key uses RegDeleteKeyW. We need to use # RegDeleteKeyExW to properly support WOW64 systems. def DeleteKey(hkey, name) - arch_mask = win64? ? 0x0100 : 0x0200 - check RegDeleteKeyExW(hkey, name.to_wstring, KEY_WRITE | arch_mask, 0) + check RegDeleteKeyExW(hkey, name.to_wstring, 0, 0) end end |