summaryrefslogtreecommitdiff
path: root/lib/chef/win32
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-05-11 13:55:51 -0700
committerJay Mundrawala <jdmundrawala@gmail.com>2015-05-15 08:51:24 -0700
commitca06992e55f7c485733ee9d421d3a42a41408d47 (patch)
tree0855da567d4cccea09873a27ffd28eb18318658e /lib/chef/win32
parentb5a5074a4252958de78e84b7de9af26fc8084ee4 (diff)
downloadchef-ca06992e55f7c485733ee9d421d3a42a41408d47.tar.gz
remove unused param_err in net_user_set_info_l3
Diffstat (limited to 'lib/chef/win32')
-rw-r--r--lib/chef/win32/net.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/win32/net.rb b/lib/chef/win32/net.rb
index fa56e71af3..0bb4d12bd4 100644
--- a/lib/chef/win32/net.rb
+++ b/lib/chef/win32/net.rb
@@ -157,7 +157,6 @@ END
end
def self.net_user_set_info_l3(server_name, user_name, info)
- param_err = FFI::Buffer.new(:long)
buf = default_user_info_3
info.each do |k, v|
@@ -167,7 +166,7 @@ END
server_name = wstring(server_name)
user_name = wstring(user_name)
- rc = NetUserSetInfo(server_name, user_name, 3, buf, param_err)
+ rc = NetUserSetInfo(server_name, user_name, 3, buf, nil)
if rc != NERR_Success
if Chef::ReservedNames::Win32::Error.get_last_error != 0
Chef::ReservedNames::Win32::Error.raise!