diff --git a/ChangeLog b/ChangeLog index 4632cf1bde..a130196c97 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,7 @@ -Thu Jul 11 20:18:08 2013 Nobuyoshi Nakada +Thu Jul 11 20:18:13 2013 Nobuyoshi Nakada + + * ext/dl/win32/lib/win32/registry.rb (Win32::Registry::API#make_wstr): + remove workaround to append WCHAR terminator. * transcode.c (str_encode_associate): fill terminator after conversion. 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)