diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-11 11:18:15 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-11 11:18:15 +0000 |
commit | 4997572f7ee26f09a6983b35593766f5bcbbd4a8 (patch) | |
tree | a9843504975e125cc27fcf7078f35432269c1347 /ext | |
parent | 18030d18cf42b4868cc702e58e7170d1897c2083 (diff) | |
download | ruby-4997572f7ee26f09a6983b35593766f5bcbbd4a8.tar.gz |
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
Diffstat (limited to 'ext')
-rw-r--r-- | ext/dl/win32/lib/win32/registry.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/win32/lib/win32/registry.rb b/ext/dl/win32/lib/win32/registry.rb index 8a5d55969e..147830ae5d 100644 --- a/ext/dl/win32/lib/win32/registry.rb +++ b/ext/dl/win32/lib/win32/registry.rb @@ -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) |