summaryrefslogtreecommitdiff
path: root/ext/fiddle/win32/lib/win32/registry.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fiddle/win32/lib/win32/registry.rb')
-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 b3a9531679f..330596f8dd6 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)