# File lib/chef/util/windows.rb, line 40 def lpwstr_to_s(buffer, offset) str = 0.chr * (256 * 2) #XXX unhardcode this length (*2 for WCHAR) wcscpy str, buffer[offset*PTR_SIZE,PTR_SIZE].unpack('L')[0] wide_to_multi str end