You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Switch to using RegQueryValueExW and RegDeleteKeyExW instead of their
ANSI counterparts
- Since Ruby 2.1.5 is broken with respec to calling delete_key and
delete_value, add our own code for RegDeleteValueW to be used.
Ensure that all deletions of registry keys go through the API rather
than Ruby.
- Implement a helper method for converting Ruby strings to UTF-16LE
strings and for creating an unmanaged LCPWSTR pointer for use in FFI
calls given a Ruby string. This code appears in Puppet itself, but
for compatibility reasons, the Registry module cannot rely on the
Puppet version that defines it.
- Implement an each_value inside of the provider base code that either
uses Rubys Win32::Registry#each_value in Ruby 2.0 and lower, or uses
the Puppet 4 implementation if available. This provides existing
behavior for older versions of Puppet / Ruby which don't have LOCALE
conversion issues, and the correct behavior for Puppet 4. This was
implemented this way to avoid dragging in a lot of duplicated FFI
code from Puppet 4 introduced via:
puppetlabs/puppet@b46ede7
0 commit comments