summaryrefslogtreecommitdiff
path: root/ext/fiddle
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-12 09:11:25 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-12 09:11:25 +0000
commite9ce31bf68ed93a58206384f9d66cfad34e35dd1 (patch)
treeff9fb6d576e365a2ba2f2b336e6343a86ae452a0 /ext/fiddle
parent342259a3280879dd7ca3d6552288ab44ec907d85 (diff)
* ext/fiddle/win32/lib/win32/registry.rb
(Win32::Registry::API#make_wstr): same as r41922. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/fiddle')
-rw-r--r--ext/fiddle/win32/lib/win32/registry.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fiddle/win32/lib/win32/registry.rb b/ext/fiddle/win32/lib/win32/registry.rb
index b3a9531..330596f 100644
--- a/ext/fiddle/win32/lib/win32/registry.rb
+++ b/ext/fiddle/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)