diff options
Diffstat (limited to 'lib/chef/win32/net.rb')
-rw-r--r-- | lib/chef/win32/net.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/win32/net.rb b/lib/chef/win32/net.rb index d7811468ea..fa56e71af3 100644 --- a/lib/chef/win32/net.rb +++ b/lib/chef/win32/net.rb @@ -107,7 +107,6 @@ END end def self.net_user_add_l3(server_name, args) - param_err = FFI::Buffer.new(:long) buf = default_user_info_3 args.each do |k, v| @@ -116,7 +115,7 @@ END server_name = wstring(server_name) - rc = NetUserAdd(server_name, 3, buf, param_err) + rc = NetUserAdd(server_name, 3, buf, nil) if rc != NERR_Success if Chef::ReservedNames::Win32::Error.get_last_error != 0 Chef::ReservedNames::Win32::Error.raise! |