зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
18030d18cf
Коммит
4997572f7e
|
@ -1,4 +1,7 @@
|
|||
Thu Jul 11 20:18:08 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Thu Jul 11 20:18:13 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* 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.
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче