1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

win32/registry.rb: remove workaround

* ext/dl/win32/lib/win32/registry.rb (Win32::Registry::API#make_wstr):
  remove workaround to append WCHAR terminator.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-07-11 11:18:15 +00:00
parent 18030d18cf
commit 4997572f7e
2 changed files with 5 additions and 2 deletions

View file

@ -1,4 +1,7 @@
Thu Jul 11 20:18:08 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
Thu Jul 11 20:18:13 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/dl/win32/lib/win32/registry.rb (Win32::Registry::API#make_wstr):
remove workaround to append WCHAR terminator.
* transcode.c (str_encode_associate): fill terminator after conversion.

View file

@ -267,7 +267,7 @@ For detail, see the MSDN[http://msdn.microsoft.com/library/en-us/sysinfo/base/pr
end
def make_wstr(str)
str.encode(WCHAR) + WCHAR_NUL
str.encode(WCHAR)
end
def OpenKey(hkey, name, opt, desired)