diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-12 09:11:25 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-12 09:11:25 +0000 |
commit | e9ce31bf68ed93a58206384f9d66cfad34e35dd1 (patch) | |
tree | ff9fb6d576e365a2ba2f2b336e6343a86ae452a0 /ext/fiddle | |
parent | 342259a3280879dd7ca3d6552288ab44ec907d85 (diff) | |
download | ruby-e9ce31bf68ed93a58206384f9d66cfad34e35dd1.tar.gz |
* 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.rb | 2 |
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 b3a9531679..330596f8dd 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) |