ruby-changes:47545
From: nobu <ko1@a...>
Date: Sat, 26 Aug 2017 23:22:36 +0900 (JST)
Subject: [ruby-changes:47545] nobu:r59661 (trunk): win32.c: fix return value
nobu 2017-08-26 23:22:31 +0900 (Sat, 26 Aug 2017) New Revision: 59661 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59661 Log: win32.c: fix return value * win32/win32.c (rb_w32_set_thread_description_str): return the result when name is nil. Modified files: trunk/win32/win32.c Index: win32/win32.c =================================================================== --- win32/win32.c (revision 59660) +++ win32/win32.c (revision 59661) @@ -7881,8 +7881,7 @@ rb_w32_set_thread_description_str(HANDLE https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L7881 WCHAR *s; if (NIL_P(name)) { - rb_w32_set_thread_description(th, L""); - return; + return rb_w32_set_thread_description(th, L""); } s = (WCHAR *)StringValueCStr(name); idx = rb_enc_get_index(name); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/