summaryrefslogtreecommitdiff
path: root/ext/dl/win32/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-11 11:18:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-11 11:18:15 +0000
commit4997572f7ee26f09a6983b35593766f5bcbbd4a8 (patch)
treea9843504975e125cc27fcf7078f35432269c1347 /ext/dl/win32/lib
parent18030d18cf42b4868cc702e58e7170d1897c2083 (diff)
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/dl/win32/lib')
-rw-r--r--ext/dl/win32/lib/win32/registry.rb2
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)