[前][次][番号順一覧][スレッド一覧]

ruby-changes:29870

From: nobu <ko1@a...>
Date: Thu, 11 Jul 2013 20:18:29 +0900 (JST)
Subject: [ruby-changes:29870] nobu:r41922 (trunk): win32/registry.rb: remove workaround

nobu	2013-07-11 20:18:15 +0900 (Thu, 11 Jul 2013)

  New Revision: 41922

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41922

  Log:
    win32/registry.rb: remove workaround
    
    * ext/dl/win32/lib/win32/registry.rb (Win32::Registry::API#make_wstr):
      remove workaround to append WCHAR terminator.

  Modified files:
    trunk/ChangeLog
    trunk/ext/dl/win32/lib/win32/registry.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41921)
+++ ChangeLog	(revision 41922)
@@ -1,4 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
-Thu Jul 11 20:18:08 2013  Nobuyoshi Nakada  <nobu@r...>
+Thu Jul 11 20:18:13 2013  Nobuyoshi Nakada  <nobu@r...>
+
+	* 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.
 
Index: ext/dl/win32/lib/win32/registry.rb
===================================================================
--- ext/dl/win32/lib/win32/registry.rb	(revision 41921)
+++ ext/dl/win32/lib/win32/registry.rb	(revision 41922)
@@ -267,7 +267,7 @@ For detail, see the MSDN[http://msdn.mic https://github.com/ruby/ruby/blob/trunk/ext/dl/win32/lib/win32/registry.rb#L267
       end
 
       def make_wstr(str)
-        str.encode(WCHAR) + WCHAR_NUL
+        str.encode(WCHAR)
       end
 
       def OpenKey(hkey, name, opt, desired)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]