diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-26 14:22:31 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-26 14:22:31 +0000 |
commit | 420efa9c782ce78ef62b74caaa97918a722d069f (patch) | |
tree | 68501e0d0a3e85bb021c48245ef15e512c4af419 /win32 | |
parent | 19d692920d2d207c3aa891fc79aa5a93c17f84c6 (diff) | |
download | ruby-420efa9c782ce78ef62b74caaa97918a722d069f.tar.gz |
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
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); |