Title: Message Title
Ethan Brown commented on an issue
Puppet / Task PUP-2554
FFI Puppet::Util::ADSI module
Use FFI to define and invoke Windows APIs. Always call the wide-version, where applicable, e.g. GetComputerNameW. Also don't do things like:

{code}
buf = " " * 128
Win32API.new('kernel32', 'GetComputerName', ['P','P'], 'I').call(buf, buf.length.to_s)
@computer_name = buf.unpack("A*")[0]
{code}

--
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.

Reply via email to