mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
19d692920d
commit
420efa9c78
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue