From 420efa9c782ce78ef62b74caaa97918a722d069f Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 26 Aug 2017 14:22:31 +0000 Subject: win32.c: fix return value * win32/win32.c (rb_w32_set_thread_description_str): return the result when name is nil. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/win32.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'win32') diff --git a/win32/win32.c b/win32/win32.c index 9243d6a293..7a7d84ef06 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -7881,8 +7881,7 @@ rb_w32_set_thread_description_str(HANDLE th, VALUE name) 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); -- cgit v1.2.3