Copy/convert back the buffer in GetPrivateProfileSectionW. Replace some output pointers str/wstr->ptr in kernel32.spec.